three+gsap实现一个可调节参数的旋涡动画效果代码

代码语言:html

所属分类:动画

代码描述:three+gsap实现一个可调节参数的旋涡动画效果代码,可调节速度及密度大小。

代码标签: three gsap 旋涡 动画

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en" >

<head>

  <meta charset="UTF-8">
  
<link rel="apple-touch-icon" type="image/png" href="https://cpwebassets.codepen.io/assets/favicon/apple-touch-icon-5ae1a0698dcc2402e9712f7d01ed509a57814f994c660df9f7a952f3060705ee.png" />
<meta name="apple-mobile-web-app-title" content="CodePen">

<link rel="shortcut icon" type="image/x-icon" href="https://cpwebassets.codepen.io/assets/favicon/favicon-aec34940fbc1a6e787974dcd360f2c6b63348d4b1f4e06c77743096d55480f33.ico" />

<link rel="mask-icon" type="image/x-icon" href="https://cpwebassets.codepen.io/assets/favicon/logo-pin-8f3771b1072e3c38bd662872f6b673a722f4b3ca2421637d5596661b4e2132cc.svg" color="#111" />


  <title>CodePen - THREE.js Zigzag Swirl</title>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  
  
  
<style>
*, *::before, *::after {
  box-sizing: border-box;
}

h1, h2, h3, h4, h5 {
  margin: 0;
}
*:focus {
  outline: 2px solid #fff;
}

body {
  margin: 0;
  height: 100vh;
  font-family: sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  
}

body[tabindex]:focus {
  outline: none;
}

canvas 
  position: fixed;
  display: block;
  width: 100vw;
  height: 100vh;
}

/* simple type scale */
h1 {font-size: 1.383rem;}
h2 {font-si.........完整代码请登录后点击上方下载按钮下载查看

网友评论0