gsap+ScrollTrigger实现视觉差异飞机窗口滚动进入页面代码
代码语言:html
所属分类:视觉差异
代码描述:gsap+ScrollTrigger实现视觉差异飞机窗口滚动进入页面代码,滚动鼠标滚轮看看效果。
代码标签: gsap ScrollTrigger 视觉 差异 飞机 窗口 滚动 进入 页面 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> * { margin: 0; padding: 0; box-sizing: border-box; } .wrapper, .content { position: relative; width: 100%; z-index: 1; } .content { overflow-x: hidden; } .content .section { width: 100%; height: 100vh; } .content .section.hero { background-image: url(//repo.bfw.wiki/bfwrepo/image/6645fa8d6f8e2.png); background-position: center center; background-repeat: no-repeat; background-size: cover; } .image-container { width: 100%; height: 100vh; position: absolute; top: 0; left: 0; right: 0; z-index: 2; perspective: 500px; overflow: hidden; } .image-container img { width: 100%; height: 100%; object-fit: cover; object-position: center center; } .gradient-purple{ background:purple ; } .gradient-blue{ background:blue ; } </style> </head> <body translate="no"> <div class="wrapper"> <div class="content"> <section class="section hero"></section> <section class="section gradient-purple"></section> <section class="s.........完整代码请登录后点击上方下载按钮下载查看
网友评论0