老熟女激烈的高潮_日韩一级黄色录像_亚洲1区2区3区视频_精品少妇一区二区三区在线播放_国产欧美日产久久_午夜福利精品导航凹凸

重慶分公司,新征程啟航

為企業(yè)提供網(wǎng)站建設(shè)、域名注冊、服務(wù)器等服務(wù)

如何實現(xiàn)圣誕節(jié)倒計時頁面特效-創(chuàng)新互聯(lián)

這篇文章主要講解了“如何實現(xiàn)圣誕節(jié)倒計時頁面特效”,文中的講解內(nèi)容簡單清晰,易于學(xué)習(xí)與理解,下面請大家跟著小編的思路慢慢深入,一起來研究和學(xué)習(xí)“如何實現(xiàn)圣誕節(jié)倒計時頁面特效”吧!

專注于為中小企業(yè)提供網(wǎng)站設(shè)計、成都網(wǎng)站制作服務(wù),電腦端+手機端+微信端的三站合一,更高效的管理,為中小企業(yè)庫倫免費做網(wǎng)站提供優(yōu)質(zhì)的服務(wù)。我們立足成都,凝聚了一批互聯(lián)網(wǎng)行業(yè)人才,有力地推動了上千企業(yè)的穩(wěn)健成長,幫助中小企業(yè)通過網(wǎng)站建設(shè)實現(xiàn)規(guī)模擴充和轉(zhuǎn)變。

一起看下效果圖:

如何實現(xiàn)圣誕節(jié)倒計時頁面特效

實現(xiàn)的代碼。

html代碼:

代碼如下:


       Merry Christmas


   

           

  •            

                   1

           

  •        

  •            

                   2

           

  •        

  •            

                   3

           

  •        

  •            

                   4

           

  •        

  •            

                   5

           

  •        

  •            

                   6

           

  •        

  •            

                   7

           

  •        

  •            

                   8

           

  •        

  •            

                   9

           

  •        

  •            

                   10

           

  •        

  •            

                   11

           

  •        

  •            

                   12

           

  •        

  •            

                   13

           

  •        

  •            

                   14

           

  •        

  •            

                   15

           

  •        

  •            

                   16

           

  •        

  •            

                   17

           

  •        

  •            

                   18

           

  •        

  •            

                   19

           

  •        

  •            

                   20

           

  •        

  •            

                   21

           

  •        

  •            

                   22

           

  •        

  •            

                   23

           

  •        

  •            

                   24

           

  •        

  •            

                   25

           

  •    

   


   


css代碼:

代碼如下:


body {
 background: url("xmas.jpg");
 color: #fff;
 font-family: 'Oleo Script', cursive;
 padding: 20px;
 font-weight: 400;
}
h2 {
 margin:0;
 font-size:75px;
 line-height: 75px;
 text-align: center;
 font-weight: 400;
}
ul {
 margin:0 auto 30px auto;
 padding:0;
 list-style-type:none;
 max-width:900px;
 width: 100%;
 text-align: center;
 user-select: none;
}
li {
 font-weight: 400;
 background-color: #fff;
 box-sizing: border-box;
 border-radius: 6px;
 display: inline-block;
 color:#111;
 cursor:pointer;
 font-size: 26px;
 padding:15px;
 margin:25px 12px;
 width: 130px;
 height:130px;
 line-height: 100px;
 text-align:center;
 position: relative;
 vertical-align:top;
 user-select: none;
 perspective: 800px;
 transition: all 0.4s ease-in-out;
}
ul li:last-child {
 background-size:cover;  
 display:block;
 clear:both;
 margin: 20px auto 0 auto;
 width: 200px;
 height: 275px;
}
ul li:last-child .door {
 font-size: 100px;
 width: 200px;
 height: 275px;
 line-height: 240px;
}
ul li:last-child .revealed {
 line-height: 123px;
}
.door {
 user-select: none;
 color:#fff;
 font-size: 70px;
 position: absolute;
 top:0;
 left:0;
 background-color: #91c1cc;
 box-sizing: border-box;
 border-top: 2px #eee dashed;
 border-right: 2px #eee dashed;
 border-bottom: 2px #eee dashed;
 border-left: 1px #eee solid;
 border-radius: 6px;
 padding:15px;
 width: 130px;
 height:130px;
 transform-origin: 0 40%;
 transition: all 0.4s ease-in-out;
 transform-style: preserve-3d;
}
.current .door {
 background-color: #7EAD44;
}
.current .door.open{
 color: #7EAD44;
}
.revealed {
 user-select: none;
}
#message {
 box-sizing: border-box;
 color: #222;
 display: none;
 font-size: 24px;
 padding: 20px;
 background: #eddecb;
 max-width: 500px;
 width: 100%;
 border-radius: 15px;
 margin: 0 auto;
}
.open {
 box-shadow: 14px 0px 15px -1px rgba(0,0,0,0.2);
 color: #91c1cc;
 transform: rotate3d(0, 1, 0, -98deg);
}
.jiggle {
 animation: jiggle 0.2s infinite;
 transform: rotate(-1deg);
}
@keyframes jiggle {
 0% {
       transform: rotate(-1deg);
 }
 50% {
     transform: rotate(1deg);
 }
}
@media screen and (min-width: 480px) {
 li {
   margin:25px 20px;
 }
}

@media screen and (min-width: 768px) {
   body {
       background-size:150px;
   }
   p {
       right: 6%;
       top: 20%;
       bottom: auto;
       margin-left: auto;
       left: auto;
   }
}


js代碼:

代碼如下:


$(document).ready(function () {
         var words = [
     'Lorem ',
     'ipsum ',
     'delor',
     'sit',
     'amet',
     'consect',
     'adipisci',
     'elit,',
     'sed.',
     'Eiusmod',
     'tempor',
     'a',
     'enim',
     'minim',
     'season',
     'nulla',
     'dolore',
     'sint',
     'id',
     'est',
     'laboris',
     'ut.',
     'aute',
     'laborum',
     'toe'
 ];
         var message = '';
         var date = new Date();
         var day = date.getDate();
         var month = date.getMonth() + 1;
         var scrolled = false;
         var timeDelay = 200;
         var cardReveal = function () {
             $('#message').text(message).show();
         };
         if (month === 12) {
             $('li').each(function (index) {
                 var adventwindow = index + 1;
                 var item = $(this);
                 if (day !== adventwindow && adventwindow < day) {
                     window.setTimeout(function () {
                         item.children('.door').addClass('open');
                     }, timeDelay);
                 }
                 timeDelay += 100;
                 if (adventwindow <= day) {
                     var word = words[index];
                     $(this).append('

' + word + '
');
                     message = message + ' ' + word;
                 }
                 if (adventwindow === day) {
                     $(this).addClass('current');
                     $(this).addClass('jiggle');
                 }
                 $(this).on('click', function () {
                     if (adventwindow <= day) {
                         $(this).children('.door').toggleClass('open');
                     }
                     $(this).removeClass('jiggle');
                     if (day >= 25 && adventwindow === 25) {
                         messageReveal();
                         if (!scrolled) {
                             $('html, body').animate({ scrollTop: $('#message').offset().top }, 2000);
                             scrolled = true;
                         }
                     }
                 });
             });
             if (day >= 26) {
                 messageReveal();
             }
         }
     });


感謝各位的閱讀,以上就是“如何實現(xiàn)圣誕節(jié)倒計時頁面特效”的內(nèi)容了,經(jīng)過本文的學(xué)習(xí)后,相信大家對如何實現(xiàn)圣誕節(jié)倒計時頁面特效這一問題有了更深刻的體會,具體使用情況還需要大家實踐驗證。這里是創(chuàng)新互聯(lián)網(wǎng)站建設(shè)公司,,小編將為大家推送更多相關(guān)知識點的文章,歡迎關(guān)注!


文章名稱:如何實現(xiàn)圣誕節(jié)倒計時頁面特效-創(chuàng)新互聯(lián)
分享地址:http://www.xueling.net.cn/article/shphp.html

其他資訊

在線咨詢
服務(wù)熱線
服務(wù)熱線:028-86922220
TOP
主站蜘蛛池模板: 久草视频在线免费看 | 久草热在线| 蜜臀网站| 高清1区2区 | japanese精品少妇 | 亚洲精品一区二区三区午夜不卡片 | 久久网一区二区 | AV换脸明星一区二区三区 | 永久免费无码网站在线观看 | www中文字幕 | 亚洲天堂第一页 | 亚洲国产精品黑人久久久 | 91在线视频?看免费 高清在线一区二区 | 国产精品久久久久久久久粉嫩 | 免费国产一区二区三区 | 国产成人精品男人的天堂 | 国产在线一区二区三区在线 | 蜜臀AV在线无码国产 | 可以看的黄色网址 | 欧美激情精品久久久久久久久久 | AV国产剧情MD精品麻豆 | 艹逼逼逼 | 北条麻妃一区二区免费播放 | 久久成人国产 | 亚洲国产国语自产精品 | 免费的黄 | 中文字幕2018第一页 | 婷婷综合少妇啪啪喷水动态小说 | www.久久国产 | 成年女人看片免费视频播放人 | 欧美黑人巨大久久久精品一区 | 国内视频一区 | 免费人妻无码不卡中文字幕系列 | 中出在线视频 | 国内精自视频品线一区 | 天堂久久精品 | 嫩草影院永久久久精品 | 国产亚洲欧洲网友拍 | 国产专区在线视频 | 96精品在线观看 | 亚洲中文字幕不卡无码 |