TweenLite实现鼠标滚动全屏图文切换过渡幻灯片效果代码
代码语言:html
所属分类:幻灯片
代码描述:TweenLite实现鼠标滚动全屏图文切换过渡幻灯片效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <style> *, *:before, *:after { box-sizing: border-box; margin: 0; padding: 0; } body { overflow: hidden; background: #000; } .ws-pages { overflow: hidden; position: relative; height: 100vh; } .ws-bgs { position: relative; height: 100%; } .ws-bg { display: flex; height: 100%; background-size: cover; background-position: center center; } .ws-pages.s--ready .ws-bg { background: none; } .ws-bg__part { overflow: hidden; position: relative; height: 100%; cursor: -webkit-grab; cursor: grab; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .ws-bg__part-inner { position: absolute; top: 0; width: 100vw; height: 100%; background-size: cover; background-position: center center; } .ws-bg:nth-child(1) { background-image: url(//repo.bfw.wiki/bfwrepo/image/5f24e1feda734.png); } .ws-bg:nth-child(1) .ws-bg__part-inner { background-image: url(//repo.bfw.wiki/bfwrepo/image/5f24e1feda734.png); } .ws-bg:nth-child(2) { background-image: url(//repo.bfw.wiki/bfwrepo/image/600d657ecf5ce.png); } .ws-bg:nth-child(2) .ws-bg__part-inner { background-image: url(//repo.bfw.wiki/bfwrepo/image/600d657ecf5ce.png); } .ws-bg:nth-child(3) { background-image: url(//repo.bfw.wiki/bfwrepo/image/5d65eaff5a217.png); } .ws-bg:nth-child(3) .ws-bg__part-inner { background-image: url(//repo.bfw.wiki/bfwrepo/image/5d65eaff5a217.png); } .ws-text { overflow: hidden; position: a.........完整代码请登录后点击上方下载按钮下载查看
网友评论0