gsap+three实现三维地球仪效果代码
代码语言:html
所属分类:三维
代码描述:gsap+three实现三维地球仪效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> * { box-sizing: border-box; } body { min-height: 100vh; background: radial-gradient(#030f1c, #050505), #030f1c; } #app { display: grid; place-items: center; min-height: 100vh; } .container { position: fixed; height: 100vh; width: 100vw; transform: translate3d(0, 0, 100vmin); } .scroll-icon { height: 30px; position: fixed; top: 1rem; right: 1rem; color: #e6e6e6; -webkit-animation: action 4s infinite; animation: action 4s infinite; } @-webkit-keyframes action { 0%, 25%, 50%, 100% { transform: translate(0, 0); } 12.5%, 37.5% { transform: translate(0, 25%); } } @keyframes action { 0%, 25%, 50%, 100% { transform: translate(0, 0); } 12.5%, 37.5% { transform: translate(0, 25%); } } </style> </head> <body > <div id="app"></div> <svg class="scroll-icon" viewBox="0 0 24 24"> <path fill="currentColor" d="M20 6H23L19 2L15 6H18V18H15.........完整代码请登录后点击上方下载按钮下载查看
网友评论0