css svg 描边动画效果

编程入门 行业动态 更新时间:2024-10-09 07:26:13

css svg  描边动画<a href=https://www.elefans.com/category/jswz/34/1770448.html style=效果"/>

css svg 描边动画效果

svg实现的一个微不足道的描边效果:

线条是运动着的,以下是png,本应放gif来着

颜色看起来有点乱,哈哈

 

<!DOCTYPE html>
<html lang="en">
<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta http-equiv="X-UA-Compatible" content="ie=edge"><title>流光</title><style>.text{fill:#eee;font-size: 80px;}.text1{stroke: #f00;animation: slide1 5s linear infinite;}@keyframes slide1{0%{stroke-dashoffset: -0;}100% {stroke-dashoffset: 125;}}.text2{stroke: #f33;animation: slide2 5s linear infinite;}@keyframes slide2{0%{stroke-dashoffset: -35;}100% {stroke-dashoffset: 160;}}.text3{stroke: #f66;animation: slide3 5s linear infinite;}@keyframes slide3{0%{stroke-dashoffset: -70;}100% {stroke-dashoffset: 195;}}.text4{stroke: #faa;animation: slide4 5s linear infinite;}@keyframes slide4{0%{stroke-dashoffset: -105;}100% {stroke-dashoffset: 230;}}</style>
</head>
<body><div class="svg_wrap"><svg xmlns="" version="1.1" width="600px;height: 300px;"><text class="text text1" x="50" y="100"stroke-dasharray="35 135" >细草微风岸,平林月未满</text><text class="text text2" x="50" y="100"stroke-dasharray="35 135" >细草微风岸,平林月未满</text><text class="text text3" x="50" y="100"stroke-dasharray="35 135" >细草微风岸,平林月未满</text><text class="text text4" x="50" y="100"stroke-dasharray="35 135" >细草微风岸,平林月未满</text></svg></div>
</body>
</html>

 

更多推荐

css svg 描边动画效果

本文发布于:2024-02-13 21:51:59,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1760995.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:效果   动画   css   svg

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!