gsap+Draggable3实现拖拽页面攀岩攀登效果代码

代码语言:html

所属分类:拖放

代码描述:gsap+Draggable3实现拖拽页面攀岩攀登效果代码

代码标签: gsap Draggable 拖拽 页面 攀岩 攀登

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

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

<head>
  <meta charset="UTF-8">
  

  
  
<style>
main {
  background-image: url(//repo.bfw.wiki/bfwrepo/image/661a86f7eeedd.png);
  bottom: 0;
  display: flex;
  flex-direction: column-reverse;
  left: 0;
  position: absolute;
  right: 0;
}

section {
  align-items: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  font-family: Arial;
  font-size: 3rem;
  font-style: italic;
  font-weight: 800;
  height: 100vh;
  justify-content: center;
  text-align: center;
  text-shadow: 8px 8px 8px rgba(0, 0, 0, 0.4);
  user-select: none;
}
section span {
  font-size: 1.2rem;
}

body {
  background-color: #111;
  cursor: grab;
  height: 100vh;
  overflow: hidden;
  width: 100%;
}
body:active {
  cursor: grabbing;
}

* {
  box-sizing: bor.........完整代码请登录后点击上方下载按钮下载查看

网友评论0