gsap实现滚动浏览器控制滑轮滚动和绳索方向效果代码
代码语言:html
所属分类:加载滚动
代码描述:gsap实现滚动浏览器控制滑轮滚动和绳索方向效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
body {
margin: 0;
background: grey;
height: 1000vh;
background-image: linear-gradient(#777777b3 0.1em, transparent 0.1em);
background-size: 10em 10em;
}
.rope {
position: fixed;
top: 0;
bottom: 0;
right: 20px;
background-size: contain;
height: 100vh;
width: 20px;
z-index: 2;
background: url(https://public.agriconomie.com/imgbin_rope-euclidean-drawing-png.png) repeat 0 0 transparent;
background-size: contain;
}
.rope--up {
right: 70px;
}
.rope--down {
right: 20px;
}
.wheel {
position: fixed;
right: 35px;
width: 34px;
height: 34px;
border-radius: 100%;
border: 3px solid #424242;
}
.wheel--top {
top: 10%;
}
.wheel--middle {
top: 50%;
}
.wheel--bottom {
bottom: 10%;
}
.wheel .........完整代码请登录后点击上方下载按钮下载查看
网友评论0