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.873l51.601 2.218 15.659 96.507h317.082l13.502-81.624 35.641 1.532" fill="#fcaacf"/>
  <path id="base" d="M430.6 573.749l-15.985-98.517c137.241 17.82 213.091 18.539 347.42 11.743l-14.353 86.774H430.6z" fill-opacity=".19" fill-rule="nonzero"/>
  <path id="screen" d="M407.764 214.911c20.552-37.841 309.83-47.555 336.656-26.75 114.828 89.057 68.883 215.977 22.835 256.629-37.15 32.796-336.125 16.964-375.24-17.512-39.114-34.476.724-184.702 15.749-212.367z" fill="#2249b3" fill-rule="nonzero"/>
  <path id="heads" d="M522.48 274.855c-54.11-42.11-76.611-2.602-81.104 22.717-4.493 25.319 2.408 42.155 6.774.........完整代码请登录后点击上方下载按钮下载查看

网友评论0