123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>开场动画</title>
- <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
- <meta name="apple-mobile-web-app-capable" content="yes">
- <meta name="apple-mobile-web-app-status-bar-style" content="black">
- <link rel="stylesheet" href="../css/mui.min.css">
- <style>
- #close {
- position: absolute;
- width: 160px;
- left: 50%;
- margin-left: -80px;
- bottom: 15%;
- padding: 10px;
- color: #fff;
- border-color: #fff;
- }
- .item-logo {
- width: 100%;
- height: 100%;
- position: relative;
- }
- .item-logo a {
- width: 200px;
- height: 200px;
- display: block;
- border: 1px solid #FFFFFF;
- border-color: rgba(255, 255, 255, 0.5);
- text-align: center;
- line-height: 200px;
- border-radius: 50%;
- font-size: 40px;
- color: #fff;
- position: absolute;
- top: 15%;
- left: 50%;
- margin-left: -100px;
- }
- .animate {
- position: absolute;
- left: 0;
- bottom: 15%;
- width: 100%;
- color: #fff;
- display: -moz-box;
- }
- .animate h2 {
- text-align: center;
- margin-bottom: 20px;
- }
- .animate li {
- width: 50%;
- height: 30px;
- line-height: 30px;
- list-style: none;
- font-size: 16px;
- text-align: right;
- }
- .animate li:nth-child(3) {
- text-align: left;
- float: right;
- }
- .animated {
- -webkit-animation-duration: 1s;
- -webkit-animation-play-state: paused;
- -webkit-animation-fill-mode: both;
- }
- .guide-show .bounceInDown {
- -webkit-animation-name: bounceInDown;
- -webkit-animation-play-state: running;
- -webkit-animation-delay: 1s;
- display: block;
- }
- .guide-show .bounceInLeft {
- -webkit-animation-name: bounceInLeft;
- display: block;
- -webkit-animation-play-state: running;
- }
- .guide-show .bounceInRight {
- -webkit-animation-name: bounceInRight;
- display: block;
- -webkit-animation-play-state: running;
- -webkit-animation-delay: 0.5s;
- }
- @-webkit-keyframes bounceInDown {
- 0%, 60%, 75%, 90%, 100% {
- -webkit-animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
- animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
- }
- 0% {
- opacity: 0;
- -webkit-transform: translate3d(0, -3000px, 0);
- transform: translate3d(0, -3000px, 0);
- }
- 60% {
- opacity: 1;
- -webkit-transform: translate3d(0, 25px, 0);
- transform: translate3d(0, 25px, 0);
- }
- 75% {
- -webkit-transform: translate3d(0, -5px, 0);
- transform: translate3d(0, -5px, 0);
- }
- 90% {
- -webkit-transform: translate3d(0, 3px, 0);
- transform: translate3d(0, 3px, 0);
- }
- 100% {
- -webkit-transform: none;
- transform: none;
- }
- }
- @-webkit-keyframes bounceInLeft {
- 0%, 60%, 75%, 90%, 100% {
- -webkit-animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
- animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
- }
- 0% {
- opacity: 0;
- -webkit-transform: translate3d(-3000px, 0, 0);
- transform: translate3d(-3000px, 0, 0);
- }
- 60% {
- opacity: 1;
- -webkit-transform: translate3d(25px, 0, 0);
- transform: translate3d(25px, 0, 0);
- }
- 75% {
- -webkit-transform: translate3d(-10px, 0, 0);
- transform: translate3d(-10px, 0, 0);
- }
- 90% {
- -webkit-transform: translate3d(5px, 0, 0);
- transform: translate3d(5px, 0, 0);
- }
- 100% {
- -webkit-transform: none;
- transform: none;
- }
- }
- @-webkit-keyframes bounceInRight {
- 0%, 60%, 75%, 90%, 100% {
- -webkit-animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
- animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
- }
- 0% {
- opacity: 0;
- -webkit-transform: translate3d(3000px, 0, 0);
- transform: translate3d(3000px, 0, 0);
- }
- 60% {
- opacity: 1;
- -webkit-transform: translate3d(-25px, 0, 0);
- transform: translate3d(-25px, 0, 0);
- }
- 75% {
- -webkit-transform: translate3d(10px, 0, 0);
- transform: translate3d(10px, 0, 0);
- }
- 90% {
- -webkit-transform: translate3d(-5px, 0, 0);
- transform: translate3d(-5px, 0, 0);
- }
- 100% {
- -webkit-transform: none;
- transform: none;
- }
- }
- </style>
- </head>
- <body>
- <div id="slider" class="mui-slider mui-fullscreen" style="background-color: black;">
- <div class="mui-slider-group">
- <!-- 第一张 -->
- <div class="mui-slider-item">
- <div class="item-logo" style="background-image: url(../images/source/guide1.png);
- background-repeat: no-repeat;background-size: 100% 100%;">
- <a href="#">
- <img src="../images/person/header-login.png" style="width:150px;margin-top: 10%;" />
- </a>
- <div class="animate guide-show">
- <h2 class="animated bounceInDown">小巧高能</h2>
- <li class="animated bounceInLeft">简单方便</li>
- <li class="animated bounceInRight">上千种书籍</li>
- </div>
- </div>
- </div>
- <!-- 第二张 -->
- <div class="mui-slider-item">
- <div class="item-logo" style="background-image: url(../images/source/guide2.png);
- background-repeat: no-repeat;background-size: 100% 100%;">
- <a href="#">
- <img src="../images/person/header-login.png" style="width:150px;margin-top: 10%;" />
- </a>
- <div id="tips-2" class="animate mui-hidden">
- <h2 class="animated bounceInDown">原创文章</h2>
- <li class="animated bounceInLeft">彰显个人魅力</li>
- <li class="animated bounceInRight">表达现实生活</li>
- </div>
- </div>
- </div>
- <!-- 第三张 -->
- <!--<div class="mui-slider-item">
- <div class="item-logo" style="background-image: url(../images/source/guide3.png);
- background-repeat: no-repeat;background-size: 100% 100%;">
- <a href="#">
- <img src="../images/person/header-login.png" style="width:150px;margin-top: 10%;" />
- </a>
- <div id="tips-3" class="animate mui-hidden">
- <h2 class="animated bounceInDown">流畅体验</h2>
- <li class="animated bounceInLeft">整个世界都美好了</li>
- <li class="animated bounceInRight">收藏你的挚爱</li>
- </div>
- </div>
- </div>-->
- <!-- 第四张 -->
- <div class="mui-slider-item">
- <div class="item-logo" style="background-image: url(../images/source/guide3.png);
- background-repeat: no-repeat;background-size: 100% 100%;">
- <a href="#">
- <img src="../images/person/header-login.png" style="width:150px;margin-top: 10%;" />
- </a>
- <div class="animate">
- <button id='close' class="mui-btn mui-btn-warning mui-btn-outlined">立即体验</button>
- </div>
- </div>
- </div>
- </div>
- <div class="mui-slider-indicator">
- <div class="mui-indicator mui-active"></div>
- <div class="mui-indicator"></div>
- <!--<div class="mui-indicator"></div>-->
- <div class="mui-indicator"></div>
- </div>
- </div>
- <!--
- 作者:HZC
- 时间:2015-08-26
- 描述:起始页
- -->
- <script src="../js/mui.min.js" type="text/javascript" charset="utf-8"></script>
- <script src="../js/app.js" type="text/javascript" charset="utf-8"></script>
- <script src="../js/db/dicBook.js" type="text/javascript" charset="utf-8"></script>
- <script src="../js/db/dicCategory.js" type="text/javascript" charset="utf-8"></script>
- <script src="../js/db/hzc.initDb.js" type="text/javascript" charset="utf-8"></script>
- <script type="text/javascript">
- mui.back = function() {};
- mui.plusReady(function() {
- plus.navigator.setFullscreen(true);
- setAppVersion();
- if (mui.os.ios) {
- plus.navigator.setFullscreen(true);
- }
- plus.navigator.closeSplashscreen();
- mui.back = function() {}
- });
- //立即体验按钮点击事件
- document.getElementById("close").addEventListener('tap', function(event) {
- // plus.storage.setItem("lauchFlag", "true");
- // plus.webview.currentWebview().close();
- plus.navigator.setFullscreen(false);
- mui.openWindow({
- id: 'login-id',
- url: '../login.html',
- show: {
- duration: 200
- }
- });
- }, false);
- //图片切换时,触发动画
- document.querySelector('.mui-slider').addEventListener('slide', function(event) {
- //注意slideNumber是从0开始的;
- var index = event.detail.slideNumber + 1;
- if (index == 2 /*|| index == 3*/) {
- var item = document.getElementById("tips-" + index);
- if (item.classList.contains("mui-hidden")) {
- item.classList.remove("mui-hidden");
- item.classList.add("guide-show");
- }
- }
- });
- </script>
- </body>
- </html>
|