How do you make an image blink?

后端 未结 3 350
深忆病人
深忆病人 2020-12-09 11:55

I was wondering how to make an image blink in CSS, if it is possible. I want to have it blink where it is.

I would also like to change the speed but mainly I want to

3条回答
  •  天涯浪人
    2020-12-09 12:32

    You can do it with CSS easily. Just add below cross browser code in the CSS element of your image. You can set also timing if you change the digit in the code.

    -webkit-transition:all 1s ease-in-out;
    -o-transition:all 1s ease-in-out;
    -ms-transition:all 1s ease-in-out;
    transition:all 1s ease-in-out;
    -webkit-animation:blink normal 2s infinite ease-in-out; 
    -ms-animation:blink normal 2s infinite ease-in-out; 
    animation:blink normal 2s infinite ease-in-out;
    

提交回复
热议问题