three+webgl实现网页滚动blob三维液态展开动画代码
代码语言:html
所属分类:加载滚动
代码描述:three+webgl实现网页滚动blob三维液态展开动画代码,显示不同的板块文字。
代码标签: three webgl 网页 滚动 blob 三维 液态 展开 动画 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
background-color: #000;
color: #fff;
overscroll-behavior: none;
width: 100%;
overflow-x: hidden;
}
/* Fixed Fullscreen Canvas */
canvas.webgl {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100vh;
pointer-events: none;
mix-blend-mode: screen;
z-index: 2;
}
/* Smooth Scroll Wrapper Setup */
.scroll__stage {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100vh;
overflow: hidden;
z-index: 1;
}
.scroll__content {
position: absolute;
top: 0;
left: 0;
width: 100%;
will-change: transform;
}
/* Section Layouts */
.section {
display: flex;
justify-content: space-evenly;
align-items: center;
width: 100%;
min-height: 100vh;
padding: 8rem 4rem;
position: relative;
}
.section:nth-child(odd) {
background-color: #000000;
}
.section:nth-child(even) {
.........完整代码请登录后点击上方下载按钮下载查看















网友评论0