css文字、图片闪烁

css文字、图片闪烁

<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link href="//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
</head>
<body>
<style>
    @keyframes blink{

        0%{opacity: 1;}

        100%{opacity: 0;}

    }

    @-webkit-keyframes blink {

        0% { opacity: 1; }

        100% { opacity: 0; }

    }

    .blink{

        color: #dd4814;

        animation: blink 1s linear infinite;

        -webkit-animation: blink 1s linear infinite;

    }
</style>

<i class="fa fa-bullhorn"><i class="fa fa-th-list blink"></i>
</body>
</html>

 

    原文作者:猿学
    原文地址: https://blog.csdn.net/weixin_38787928/article/details/107402551
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞