css路径动画实现运动效果
代码语言:html
所属分类:动画
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
main {
width: 500px;
height: 310px;
position: relative;
}
div {
display: none;
position: absolute;
will-change: offset-distance;
border-radius: 30%;
width: 8px;
height: 4px;
border: 3px solid currentColor;
color: hsl(143,100%,50%);
clip-path: polygon(0% 0%, 100% 50%, 0% 100%, 20% 50%);
offset-path: path("M20,10 H480 L 490,20 V 280 L 480,290 H20 L 10,280 V 20 z M60,290 l40,-60 h300 l30,60 M150,100 a30,30 1 1,0 .1,0 M35.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0