gsap实现路径运动动画效果代码
代码语言:html
所属分类:动画
代码描述:gsap实现路径运动动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
body {
background-color: #16181D;
background-image: linear-gradient(205deg, #313346 0%, #15161D 76%);
height: 100vh;
}
.container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
position: relative;
}
svg {
position: absolute;
}
</style>
</head>
<body>
<div class="container">
<svg viewBox="0 0 1146 689" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd">
<path id="ant" d="M568.915 167.284l-43.06-137.99m62.307 137.664l43.061-137.99" fill="none" fill-rule="nonzero" stroke="#4d4ada" stroke-width="3.26"/>
<path id="TV" d="M382.487 160.107c-6.882 0-12.581 5.345-13.022 12.213l-18.587 289.484c-.468 7.3 5.154 13.559 12.462 13.873.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0