css闪烁效果
css:
.flicker { /*background-color: #d7e3f6;*/ background-color: white; animation-iteration-count: 3; animation: twinkle 0.3s infinite alternate; -webkit-animation-iteration-count: 3; } @keyframes twinkle { 0% { opacity: 0.8; } 100% { opacity: 0; } }
html:
<div class="flicker "></div>
效果图:
本文来自博客园,作者:沉迷编程的程序员,转载请注明原文链接:https://www.cnblogs.com/codeDevotee/p/13686552.html
欢迎各位找我代写程序,python、c#、web等都可以,加我请注明博客园微信:A15919195482