svg+css实现数据分析动画效果代码
代码语言:html
所属分类:动画
代码描述:svg+css实现数据分析动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> svg{ position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); height:140px; width:200px; } body{ overflow:hidden; background:#224; } </style> </head> <body > <svg viewbox="0 0 200 120"> <path d="M 10 50 A 10 10 90 0 0 90 50 A 10 10 90 0 0 10 50" stroke="#ccc" stroke-width="2" fill="none"/> <path d="M 10 50 A 10 10 90 0 0 90 50 A 10 10 90 0 0 10 50" stroke="#ccc" stroke-width="5" fill="none" stroke-dasharray="63"> <animateTransform attributeName="transform" attributeType="XML" type="rotate" from="0 50 50" to="360 50 50" dur="5s" repeatCount="indefinite"/> </path> <path d="M 82 74 L 97 90 H 145 M 150 115 V 50 H 185 L 197 61 V 115 Z" stroke="#ccc" stroke-width="3" fill="none"/> <path d="M 155 58 H 189" stroke="#ccc" stroke-width="1" fill="none"> <animate attributeName=&q.........完整代码请登录后点击上方下载按钮下载查看
网友评论0