gsap+svg实现代码块运行监控仪表盘动画效果代码
代码语言:html
所属分类:动画
代码描述:gsap+svg实现代码块运行监控仪表盘动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
body{
margin: 0;
padding: 0;
background-color: #212228;
}
.block2{
width: 100%;
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
</style>
</head>
<body>
<div class="block2">
<?xml version="1.0" encoding="UTF-8"?>
<svg width="456px" height="513px" viewBox="0 0 456 513" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 55.1 (78136) - https://sketchapp.com -->
<title>Block2</title>
<desc>Created with Sketch.</desc>
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="Block-2" transform="translate(-492.000000, -256.000000)">
<g id="Block2" transform="translate(492.000000, 256.000000)">
<g id="net" transform="translate(44.000000, 71.500000)" stroke="#4D4E53">
<rect id="Rectangle" x="41.5" y="0" width="92.3333" height="438"></rect>
<rect id="Rectangle" x="134.055" y="0" width="92.3333" height="438"></rect>
<rect id="Rectangle" x="226.611" y="0" width="92.3333" height="438"></rect>
<rect id="Rectangle" x="319.166" y="0" width="92.3333" height="438"></rect>
<path d="M0,84 L219,84" id="Path"></path>
<path d="M0,164 L219,164" id="Path"></path>
</g>
<g id="blockleft" transform="translate(23.000000, 0.000000)">
<rect id="Rectangle" fill="#FFFFFF" fill-rule="nonzero" x="21" y="31" width="92" height="92"></rect>
<polygon id="Path" fill="#FFFFFF" fill-rule="nonzero" points="0 0 92 0 113 31 21 123 0 92"></polygon>
<rect id="Rectangle" stroke="#FFFFFF" fill="#212228" fill-rule="nonzero" x="0.5" y="0.5" width="91" height="91"></rect>
<polyline id="Path" stroke="#FFFFFF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" points="30.834 54.291 42.584 42.541 30.834 30.791"></polyline>
<g id="blinking" transform="translate(46.500000, 57.709000)" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" stroke-width="2">
<path d="M-1.20792265e-13,0.5 L15.6667,0.5"></path>
</g>
</g>
<g id="blockright" transform="translate(210.500000, 35.500000)" stroke="#FFFFFF">
<polygon id="Path" fill="#FFFFFF" fill-rule="nonzero" points="1.98951966e-13 318 1.98951966e-13 35.7703 54.274 0.2454 189.743 318"></polygon>
<rect id="Rectangle" fill="#212228" fill-rule="nonzero" x="55" y="0" width="190" height="318"></rect>
<g id="circleup" transform="translate(92.000300, 43.000300)">
<circle id="Oval" cx="60.4757" cy="60.4757" r="60.4757"></circle>
</g>
<g id="circledown" transform="translate(92.000000, 133.758000)">
<path d="M120.951,60.475 C120.951,93.875 93.875,120.951 60.476,120.951 C27.076,120.951 -4.54747351e-13,93.875 -4.54747351e-13,60.475 C-4.54747351e-13,27.076 27.076,1.42108547e-14 60.476,1.42108547e-14 C93.875,1.42108547e-14 120.951,27.076 120.951,60.475 Z" id="Path"></path>
</g>
</g>
<g id="blockdown" transform="translate(0.500000, 264.500000)">
<polygon id="Path" stroke="#FFFFFF" fill="#FFFFFF" fill-rule="nonzero" points="455 248 455 35.769 401.224 0.247 295.258 248"></polygon>
<rect id="Rectangle" stroke="#FFFFFF" fill="#212228" fill-rule="nonzero" x="0" y="0" width="402" height="248"></rect>
<rect id="Rectangle" fill="#212228" fill-rule="nonzero" x="0.5" y="0.5" width="401" height="50"></rect>
<rect id="Rectangle" fill="#FFFFFF" fill-rule="nonzero" x="0.5" y="0.5" width="50" height="50"></rect>
<path d="M38,13 L13,38" id="Path" stroke="#FFFFFF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
<path d="M13,13 L38,38" id="Path" stroke="#FFFFFF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
<path d="M37.5,13.5 L13.5,37.5" id="Path" stroke="#212228" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
<path d="M13.5,13.5 L37.5,37.5" id="Path" stroke="#212228" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
<rect id="Rectangle" fill="#212228" fill-rule="nonzero" x="172.5" y="203.5" width="34" height="11" rx="5.5"></rect>
<rect id="Rectangle" fill="#646469" fill-rule="nonzero" x="59.5" y="85.5" width="67" height="11" rx="5.5"></rect>
<path d="M24.5,91 L41.5,91" id="Path" stroke="#FFFFFF"></path>
<path d="M24.5,130 L41.5,130" id="Path" stroke="#FFFFFF"></path>
<path d="M24.5,169 L41.5,169" id="Path" stroke="#FFFFFF"></path>
<path d="M24.5,209 L41.5,209" id="Path" stroke="#FFFFFF"></path>
<rect id="Rectangle" fill=&quo.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0