css+svg实现2023新年快乐文字动画效果代码
代码语言:html
所属分类:动画
代码描述:css+svg实现2023新年快乐文字动画效果代码
代码标签: css svg 2023 新年 快乐 文字 动画
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> html, body { height: 100%; } body { background: #262626; background-size: 0.12em 100%; font-size: 13em; } .text--line { font-size: 0.5em; } svg { position: absolute; width: 100%; height: 100%; } .text-copy { fill: none; stroke: white; stroke-dasharray: 5% 10%; stroke-width: 3px; -webkit-animation: stroke-offset 20s infinite linear; animation: stroke-offset 20s infinite linear; } .text-copy:nth-child(1) { stroke: #360745; stroke-dashoffset: 5%; } .text-copy:nth-child(2) { stroke: #D61C59; stroke-dashoffset: 10%; } .text-copy:nth-child(3) { stroke: #E7D84B; stroke-dashoffset: 15%; } @-webkit-keyframes stroke-offset { 50% { stroke-dashoffset: 15%; stroke-dasharray: 0 37.5%; } } @keyframes stroke-offset { 50% { stroke-dashoffset: 15%; stroke-dasharray: 0 37.5%; } } </style> </head> <body > <svg view.........完整代码请登录后点击上方下载按钮下载查看
网友评论0