Here is the full code
- The Black and White effect is achieved with the
grayscalevalue for the filter property.
grayscale(100%)corresponds to Black and White and
grayscale(0%)corresponds to full colors.
-webkit-filterprefix is necessary for that property.
- The smooth animation is achieved with the transition property.