CSS实现标签闪动效果

给标签元素的class 添加className即可

复制代码
 1 <style>
 2             
 3             .className{
 4                 -webkit-animation: twinkling 1s infinite ease-in-out
 5             }
 6             .animated{
 7                 -webkit-animation-duration: 1s;
 8                 animation-duration: 1s;
 9                 -webkit-animation-fill-mode: both;
10                 animation-fill-mode: both
11             }
12             @-webkit-keyframes twinkling{
13                 0%{
14                     opacity: 0.5;
15                 }
16                 100%{
17                     opacity: 1;
18                 }
19             }
20             @keyframes twinkling{
21                 0%{
22                     opacity: 0.5;
23                 }
24                 100%{
25                     opacity: 1;
26                 }
27             }
28         </style>
复制代码

 

 添加class为className的标签元素会一闪一闪的效果

posted @   勤快的懒羊羊  阅读(730)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 单元测试从入门到精通
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律
点击右上角即可分享
微信分享提示