jquery实现按钮点击文章章节切换动画过渡效果代码
代码语言:html
所属分类:动画
代码描述:jquery实现按钮点击文章章节切换动画过渡效果代码
代码标签: jquery 按钮 点击 文章 章节 切换 动画 过渡
下面为部分代码预览,完整代码请点击下载或在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"> <style> * { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; outline: 0 } body { text-align: center; -webkit-font-smoothing: antialiased; color: #fff; padding: 0; margin: 0 } .container { width: 80%; margin: 0 auto } body h1 { font-size: 40px; font-weight: 300; letter-spacing: 1px; word-spacing: 2px; text-align: center } body p { line-height: 1.8em; font-size: 18px; color: #eee; letter-spacing: 1px; font-weight: 300; margin: 50px auto } button { padding: 9px 40px; border: 0; background: #fff; font-size: 15px; -webkit-border-radius: 40px; -moz-border-radius: 40px; border-radius: 40px; border-bottom: 2px solid #ddd; color: #4089A6; font-weight: 400; text-transform: uppercase; cursor: pointer } button.home { color: #3bb17c } section { padding: 30px 0; margin: 0; position: absolute; overflow: hidden; height: 100vh; top: 0; left: 0 } section.main { background: #4089A6; height: 100vh; z-index: 99; border-top: 1px solid #4089A6; border-bottom: 1px solid #4089A6 } section.aboutSection { background: #3bb17c; height: 2px; padding: 0; top: 50vh; left: 50%; width: 5px; display: none; border-top: 1px solid #3bb17c; border-bottom: 1px solid #3bb17c } @media screen and (max-width: 830px) { section { overflow-y:scroll } } </style> </head> <body> <main> <section class="main"> <div class="container mainContent"> <div class="zzsc"> <h1> 一、文章章节平滑切换动画特效 <span></span> </h1> </div> <p>Lorem ipsum dolor sit amet,www.bootstrapmb.com consectetur adipisicing elit. Deserunt asperiores libero suscipit in sit exercitationem ad blanditiis. Reiciendis vero sed ipsam delectus in!Fuga omnis recusandae adipisci odio libero ipsa. Lorem ipsum dolor sit amet,consectetur adipisicing elit. Deserunt asperiores libero suscipit in sit exercitationem ad blanditiis. Reiciendis vero sed ipsam delectus in!Fuga omnis recusandae adipisci odio.</p> <p>适用浏览器:360、FireFox、Chrome、Safari、Opera、傲游、搜狗、世界之窗. 不支持IE8及以下浏览器。</p> <button class="about">点击切换</button> </div> </section> </main> <section class="aboutSection"> <div class="container aboutContent"> <h1>二、Section Transition With jQuery Animation</h1> <p>Lorem ipsum dolor sit a.........完整代码请登录后点击上方下载按钮下载查看
网友评论0