当前位置:网站首页>Animation through svg
Animation through svg
2022-06-13 08:44:00 【Dependency_ Lai】
1. Get psd Format file , Select the corresponding layer , Right click replication svg Or export it as svg
2. Use svg Label rendering , Copy of the svg in width and height The unit is cm
<div class="svg-streamline">
<svg
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
width="203" height="110.5">
<path fill-rule="evenodd" stroke="rgb(124, 222, 121)" stroke-width="1px" stroke-linecap="butt"
stroke-linejoin="miter" fill="none"
d="M11.500,81.000 C14.814,81.000 17.500,83.686 17.500,87.000 C17.500,90.314 14.814,93.000 11.500,93.000 C8.186,93.000 5.500,90.314 5.500,87.000 C5.500,83.686 8.186,81.000 11.500,81.000 Z"/>
<path fill-rule="evenodd" fill="rgb(255, 255, 255)"
d="M11.500,84.600 C12.825,84.600 13.900,85.674 13.900,87.000 C13.900,88.325 12.825,89.400 11.500,89.400 C10.174,89.400 9.100,88.325 9.100,87.000 C9.100,85.674 10.174,84.600 11.500,84.600 Z"/>
<path fill-rule="evenodd" stroke="rgb(124, 222, 121)" stroke-width="1px" stroke-linecap="butt"
stroke-linejoin="miter" fill="none"
d="M12.500,83.000 L53.500,11.000 L70.500,11.000 "/>
<path fill-rule="evenodd" fill="rgb(255, 255, 255)"
d="M71.500,5.000 L74.500,8.000 L74.500,15.000 L71.500,18.000 L71.500,13.000 L65.500,13.000 L65.500,10.000 L71.500,10.000 L71.500,5.000 Z"/>
</svg>
</div>
3. add to CSS style , animating
.svg-streamline {
animation: lineMove 10s;
width: 203px;
overflow: hidden;
height: 110.5px;
pointer-events: none;
}
@keyframes lineMove {
0% {
stroke-dasharray: 0, 2000;
}
30% {
stroke-dasharray: 2000, 2000;
}
100% {
stroke-dasharray: 2000, 2000;
}
}
- Running effect
边栏推荐
猜你喜欢
MySQL parsing serialized fields
A solution to create a new EXCEL workbook on win10 computer and change the suffix to xlsm (normally it should be xlsx)
Vscode define code block -- define cursor position
Disk management and disk partition operation
DIY无人机(匿名拓控者P2+F330机架)
DIY UAV (anonymous controller p2+f330 rack)
0.一些自己初學Solidworks的疑惑
[notes] like the solution to the problem of slow query (index + explicitly specifying query fields)
JS - print 99 multiplication table of the for cycle case
4、 Js-es5-i / O
随机推荐
Vscode double shortcut keys up, down, left and right
Tmall product details interface, tmall product coupon interface, tmall API interface, tmall price monitoring interface, tmall price comparison interface, brand rights protection interface, tmall sales
Logstash failed to create queue
Process and scheduled task management
Learning record 4:einops / / cudnn benchamark=true // hook
On the use of visual studio
Browser render passes
In order to resist the flood, the soldiers have been fighting for 89 hours. How many days and hours are there in total?
Phpexcel 10008 error resolution
Mysql_ Preliminary summary of database data (Continued)
MySQL queries difference sets (missing data) by linking tables based on an associated field
5. Attribute selector
LVM management exercise
JS - max. of array cases
7、 JS data type
天猫商品详情接口,天猫商品优惠券接口,天猫api接口,天猫价格监控接口,天猫比价接口,品牌维权接口,天猫销量api接口,接口代码可对接数据分析业务,品牌维权,比价业务,行业分析业务接口代码分享
Mongodb test case
Redis subscribe connection timeout interrupt problem solution
关于RSA加密解密原理
Dest0g3 520迎新赛