gsap+ScrollTrigger实现滚动鼠标图片翻页翻书产生骑马动画效果代码
代码语言:html
所属分类:加载滚动
代码描述:gsap+ScrollTrigger实现滚动鼠标图片翻页翻书产生骑马动画效果代码,一本骑马的照片帧通过翻页产生动画。
代码标签: gsap ScrollTrigger 滚动 鼠标 图片 翻页 翻书 产生 骑马 动画
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> html, body { height:100%; width:100%; } .header { color: white; font-size: 50px; } .section { height: 50%; background: #293744; color: red; } .scene { height: 100%; width: 100%; background: #282828; } .center { display: flex; justify-content: center; align-items: center; height: 100%; } .mainPage { perspective: 800px; position: relative; width: 600px; height: 300px; } .static { position: absolute; right: 50px; top: 50px; width: 180px; height: 200px; background-color: #D5D589; box-shadow: -184px 26px 116px -72px rgba(0,0,0,0.26) inset; transform-origin: center left; transform: rotate3d(0, 1, 0, -110deg); z-index: 2; } .viewer { position: absolute; .........完整代码请登录后点击上方下载按钮下载查看
网友评论0