CSS Blink animation effect

CSS Blink animation

The CSS blinking animation effect can be achieved using the CSS property opacity. Change the animation duration, for faster or slower blinking speed. See our blink-with-pause CSS animation if you want to include a pause in your blinking animation.

<style> .blink { /* Uncomment as needed. */ /* width: 100px; */ /* height: 100px; */ /* background-color: deeppink; */ animation-name: blink; animation-duration: .5s; animation-iteration-count: infinite; animation-timing-function: linear; } @keyframes blink { 0% { opacity:0; } 50% { opacity:1; } 100% { opacity:0; } } </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