css实现文字交融效果
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Carver玩转css</title>
<style>
.container {
text-align: center;
filter: contrast(50);
background: #0d0d0d;
}
.text {
font-size: 30px;
color: #ccc;
animation: carver 3s forwards;
}
@keyframes carver {
from {
letter-spacing: -50px;
filter: blur(10px);
}
to {
letter-spacing: 10px;
filter: blur(0px);
}
}
</style>
</head>
<body>
<div>
<div class="container">
<span class="text">Hello world!</span>
</div>
</div>
</body>
</html>

过渡到

本文来自博客园,作者:Carvers,转载请注明原文链接:https://www.cnblogs.com/carver/articles/17691333.html

浙公网安备 33010602011771号