c字母动态多彩变换效果

代码语言:html

所属分类:布局界面

代码描述:c字母动态多彩变换效果,利用svg加css的动画属性实现

代码标签: 多彩 变换 效果

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">

    <style>
        body {
            background-color: #000;
            display: -webkit-box;
            display: flex;
            height: 100vh;
            -webkit-box-pack: center;
            justify-content: center;
            -webkit-box-align: center;
            align-items: center;
        }

@-webkit-keyframes line {
            50% {
                stroke-width: 20;
                stroke-dashoffset: 1000;
            }
        }

@keyframes line {
            50% {
                stroke-width: 20;
                stroke-dashoffset: 1000;
            }
        }
        .cls {
            fill: none;
            stroke-linecap: round;
            stroke-miterlimit: 10;
            stroke-width: 5;
            stroke-dasharray: 1000;
            stroke-dashoffset: 5000;
            -webkit-animation: line  2s infinite ease-in calc(.1s * var(--line));
            animation: line  2s infinite ease-in calc(.1s * var(--line));
        }
        .cls-1 {
            stroke: #293bff;
        }
        .cls-2 {
            stroke: #8b14ff;
        }
        .cls-3 {
            stroke: #d57fff;
        }
        .cls-4 {
            stroke: #fff;
        }
        .cls-.........完整代码请登录后点击上方下载按钮下载查看

网友评论0