svg路径动画效果代码
代码语言:html
所属分类:动画
代码描述:svg路径动画效果代码
代码标签: 效果
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> body { background: #1e1f26; display: grid; align-content: center; justify-content: center; width: 100%; height: 100vh; } </style> </head> <body> <svg id="loader" class="animated" viewBox="-50 -50 100 100" style="max-width: 600px; z-index:999; width:100vw; border:1px solid rgba(255,255,255,0.2);"> <g id="grid" stroke="rgba(255,255,255,0.2)" stroke-width=".1"> <path d="M-50 -40 H100" /> <path d="M-50 -30 H100" /> <path d="M-50 -20 H100" /> <path d="M-50 -10 H100" /> <path d="M-50 0 H100" stroke-width="0.3" /> <path d="M-50 10 H100" /> <path d="M-50 20 H100" /> <path d="M-50 30 H100" /> <path d="M-50 40 H100" /> <path d="M-40 -50 V100" /> <path d="M-30 -50 V100" /> <path d="M-20 -50 V100" /> <path d="M-10 -50 V100" /> <path d="M0 -50 V100" stroke-width="0.3" /> <path d="M10 -50 V100" /> <path d="M20 -50 V100" /> <path d="M30 -50 V100" /> <path d="M40 -50 V100" /> </g> <g id="points" fill="hsl(25,100%,50%)"> <circle cx="-20" cy="0" r="1" /> <circle cx="0" cy="0" r="1" /> <circle cx="20" cy="0" r="1" /> </g> <g fill="none"> <path id="arc" d="M-20 0 A20 20, 0, 0 1, 20 0" stroke="rgba(255,255,255,0.4)" stroke-linecap="round" style="stroke-width:7;" /> <animateTransform attributeName="transform" type="rotate" from="0 0 0" to="-360 0 0" begin="4s.........完整代码请登录后点击上方下载按钮下载查看
网友评论0