css实现文字连续光影特效
代码实现如下:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Carver玩转css</title>
<style>
span {
color: #0099FF;
font-family: "Century Gothic", Consolas, "Liberation Mono", Courier, Verdana;
font-size: 30px;
animation: spread 1s ease-in-out infinite alternate;
}
@keyframes spread {
to {
color: #33FFCC;
text-shadow: 0 0 100px #33FFCC;
}
}
span:nth-child(1) {
animation-delay: 0s;
}
span:nth-child(2) {
animation-delay: 0.2s;
}
span:nth-child(3) {
animation-delay: 0.4s;
}
</style>
</head>
<body>
<div>
<span>T</span>
<span>e</span>
<span>a</span>
</div>
</body>
</html>
本文来自博客园,作者:Carvers,转载请注明原文链接:https://www.cnblogs.com/carver/articles/17639103.html

浙公网安备 33010602011771号