CSS Blast Color animation effect

CSS Blast Color animation

Pure CSS animation effect to change the color of an HTML element from monochrome to fully saturated using the filter#saturate CSS property.

<style> .blast-color { /* Uncomment as needed. */ /* width: 100px; */ /* height: 100px; */ /* background-color: deeppink; */ animation-name: blast-color; animation-duration: 1.5s; animation-iteration-count: infinite; animation-timing-function: linear; } @keyframes blast-color { 0% { filter: saturate(0); } 15% { filter: saturate(0); } 50% { filter: saturate(100%); } 98% { filter: saturate(400%); } 100% { filter: saturate(400%); } } </style>
    Hints:
  • If you cannot see your HTML element when using our code, you may need to set a width and or height, or background on your target HTML element using CSS. Just uncomment the CSS properties in our code as needed.
  • Remove the HTML style tag as needed.
  • Change values in the code such as animation-duration as needed.
Animation effects source code licenced under MIT Licence