Loading

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>

过渡到

posted @ 2023-09-10 15:32  Carvers  阅读(41)  评论(0)    收藏  举报