css实现字体特效

 
更多

css实现字体特效,具体实例看本站的文章留言框上方。

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        #colorFont {
            background-image: linear-gradient(to right, red, orange, yellow, green, blue, yellow, orange, red, orange, yellow, green, yellow, orange, red);
            -webkit-text-fill-color: transparent;
            -webkit-background-clip: text;
            -webkit-background-size: 200% 100%;
            -webkit-animation: colorFont-animation 800ms infinite linear;
        }
        @-webkit-keyframes colorFont-animation {
            0%{ background-position: 0 0;}
            100% { background-position: -100% 0;}
        }
    </style>
</head>
<body>
<span id="colorFont">欢迎大家留言交流技术,记得关注我哦!</span>
</body>
</html>
打赏

本文固定链接: https://www.cxy163.net/archives/3315 | 绝缘体

该日志由 绝缘体.. 于 2019年11月12日 发表在 未分类 分类下, 你可以发表评论,并在保留原文地址及作者的情况下引用到你的网站或博客。
原创文章转载请注明: css实现字体特效 | 绝缘体
关键字: , , , ,

css实现字体特效:等您坐沙发呢!

发表评论


快捷键:Ctrl+Enter