jquery+css全屏炫酷弹性过渡翻页动画效果代码
代码语言:html
所属分类:幻灯片
代码描述:jquery+css全屏炫酷弹性过渡翻页动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="zh"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/font-awesome-4.7.0/css/font-awesome.min.css"> <style> html, body { margin: 0; padding: 0; position: relative; top: 0; left: 0; width: 100%; height: 100%; } .wrapper { position: relative; top: 0; width: 100vw; height: 100vh; max-width: 100%; max-height: 100%; background: deepskyblue; overflow: hidden; } .panel { position: absolute; width: 100%; height: 100%; top: 0; left: 0; bottom: 0; right: 0; margin: auto; } .panel._active { z-index: 10; } .trans-layer, .section { position: absolute; width: 100%; height: 100%; top: 0; left: 0; bottom: 0; right: 0; } .trans-layer { background: #000; transform: translateY(-100%) skew(0) rotate(0) scale(2); border-radius: 50%; transition: all 500ms ease-in-out; transition-delay: 500ms; } ._active .trans-layer { transform: translateY(0) skew(0) rotate(0) scale(2); transition-delay: 0ms; } .section { transform: translateY(100%); transition: all 500ms ease-in-out; transition-delay: 0ms; background: #343434; } ._active .section { transform: translateY(0); transition-delay: 500ms; } .section-content { display: flex; flex-flow: column; width: 100%; height: 100%; justify-content: center; align-items: center; color: #fff; font-family: arial; text-transform: uppercase; opacity: 0; transform: translateY(30px); transition: all 500ms ease; transition-delay: 0s; } ._active .section-content { opacity: 1; transform: translateY(0px); transition-delay: 1000ms; } .nav-dots { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); z-index: 20; width: 40px; } .nav-dot { width: 10px; height: 10px; margin: 20px auto; border-radius: 50%; background: #fff; cursor: pointer; transition: all 300ms ease-out; } .nav-dot.active { background: red; } .next-btn, .prev-btn { width: 30px; height: 30px; position: absolute; z-index: 20; border: 1px solid #fff; color: #fff; line-height: 30px; text-align: center; font-size: 24px; cursor: pointer; } .next-btn { bottom: 10px; right: 14px; } .prev-btn { top: 10px; right: 14px; } </style> </head> <body> <div class="wrapper"> <div class="prev-btn"><span class="fa fa-angle-up"></span></div> <div class="next-btn"><span class="fa fa-angle-down"></span></div> <div class="nav-dots"> <div data-slide="1" class="nav-dot"> </div> <div data-slide="2" class="nav-dot"> </div> <div data-slide="3" class="nav-dot"> </div> <div data-slide="4" class="nav-dot"> </div> <div data-slide="5" class="nav-dot"> </div> </div> <div data-slide="1" class="panel"> <div id="layer-1" class="trans-layer"></div> <section id="section-1" class="section"> <div class="section-content"> <header class="header"> <h1>Section 1</h1> </header> </div> </section> </div> <div data-slide="2" class="panel"> <div id="layer-2" class="trans-layer"></div> <section id="section-2" class="section"> <div class="section-content"> <h1>Section 2</h1> </div> </section> </div> <div data-slide="3" class="panel"> <div id="layer-3" class="trans-layer"></div> <section id="section-3" class="section"> <div.........完整代码请登录后点击上方下载按钮下载查看
网友评论0