午夜视频免费看_日韩三级电影网站_国产精品久久一级_亚洲一级在线播放_人妻体内射精一区二区三区_91夜夜揉人人捏人人添红杏_91福利在线导航_国产又粗又猛又黄又爽无遮挡_欧美日韩一区在线播放_中文字幕一区二区三区四区不卡 _日日夜夜精品视频免费观看_欧美韩日一区二区三区

主頁 > 知識庫 > 逼真的HTML5樹葉飄落動畫

逼真的HTML5樹葉飄落動畫

熱門標簽:南通數據外呼系統推廣 阜陽企業外呼系統 外呼系統電話怎么投訴 地圖標注位置能賺錢嗎 呼和浩特外呼電銷系統排名 外呼線穩定線路 pageadm實現地圖標注 申請400電話流程簡介 邢臺縣地圖標注app

這款HTML5樹葉飄落動畫是基于webkit內核的,也就是說要在webkit內核的瀏覽器上才能使用這款動畫。

源碼下載 演示地址

HTML代碼

XML/HTML Code復制內容到剪貼板
  1. <div id="container">  
  2.   <!-- The container is dynamically populated using the init function in leaves.js -->  
  3.   <!-- Its dimensions and position are defined using its id selector in leaves.css -->  
  4.   <div id="leafContainer"></div>  
  5.   <!-- its appearance, dimensions, and position are defined using its id selector in leaves.css -->  
  6.   <div id="message">  
  7.    <em>這是基于webkit的落葉動畫</em>  
  8.   </div>  
  9. </div>  

CSS代碼

CSS Code復制內容到剪貼板
  1. #container {   
  2.     positionrelative;   
  3.     height700px;   
  4.     width500px;   
  5.     margin10px auto;   
  6.     overflowhidden;   
  7.     border4px solid #5C090A;   
  8.     background#4E4226 url('images/backgroundLeaves.jpg'no-repeat top left;   
  9. }   
  10.   
  11. /* Defines the position and dimensions of the leafContainer div */  
  12. #leafContainer    
  13. {   
  14.     positionabsolute;   
  15.     width: 100%;   
  16.     height: 100%;   
  17. }   
  18.   
  19. /* Defines the appearance, position, and dimensions of the message div */  
  20. #message   
  21. {   
  22.     positionabsolute;   
  23.     top160px;   
  24.     width: 100%;   
  25.     height300px;   
  26.     background:transparent url('images/textBackground.png'repeat-x center;   
  27.     color#5C090A;   
  28.     font-size: 220%;   
  29.     font-family'Georgia';   
  30.     text-aligncenter;   
  31.     padding20px 10px;   
  32.     -webkit-box-sizing: border-box;   
  33.     -webkit-background-size: 100% 100%;   
  34.     z-index: 1;   
  35. }   
  36.   
  37. p {   
  38.   margin15px;   
  39. }   
  40.   
  41. a   
  42. {   
  43.   color#5C090A;   
  44.   text-decorationnone;   
  45. }   
  46.   
  47. /* Sets the color of the "Dino's Gardening Service" message */  
  48. em    
  49. {   
  50.     font-weightbold;   
  51.     font-stylenormal;   
  52. }   
  53.   
  54. .phone {   
  55.   font-size: 150%;   
  56.   vertical-alignmiddle;   
  57. }   
  58.   
  59. /* This CSS rule is applied to all div elements in the leafContainer div.  
  60.    It styles and animates each leafDiv.  
  61. */  
  62. #leafContainer > div    
  63. {   
  64.     positionabsolute;   
  65.     width100px;   
  66.     height100px;   
  67.   
  68.     /* We use the following properties to apply the fade and drop animations to each leaf.  
  69.        Each of these properties takes two values. These values respectively match a setting  
  70.        for fade and drop.  
  71.     */  
  72.     -webkit-animation-iteration-count: infinite, infinite;   
  73.     -webkit-animation-directionnormalnormal;   
  74.     -webkit-animation-timing-function: linear, ease-in;   
  75. }   
  76.   
  77. /* This CSS rule is applied to all img elements directly inside div elements which are  
  78.    directly inside the leafContainer div. In other words, it matches the 'img' elements  
  79.    inside the leafDivs which are created in the createALeaf() function.  
  80. */  
  81. #leafContainer > div > img {   
  82.      positionabsolute;   
  83.      width100px;   
  84.      height100px;   
  85.   
  86.     /* We use the following properties to adjust the clockwiseSpin or counterclockwiseSpinAndFlip  
  87.        animations on each leaf.  
  88.        The createALeaf function in the Leaves.js file determines whether a leaf has the   
  89.        clockwiseSpin or counterclockwiseSpinAndFlip animation.  
  90.     */  
  91.      -webkit-animation-iteration-count: infinite;   
  92.      -webkit-animation-direction: alternate;   
  93.      -webkit-animation-timing-function: ease-in-out;   
  94.      -webkit-transform-origin: 50% -100%;   
  95. }   
  96.   
  97. /* Hides a leaf towards the very end of the animation */  
  98. @-webkit-keyframes fade   
  99. {   
  100.     /* Show a leaf while into or below 95 percent of the animation and hide it, otherwise */  
  101.     0%   { opacity: 1; }   
  102.     95%  { opacity: 1; }   
  103.     100% { opacity: 0; }   
  104. }   
  105.   
  106. /* Makes a leaf fall from -300 to 600 pixels in the y-axis */  
  107. @-webkit-keyframes drop   
  108. {   
  109.     /* Move a leaf to -300 pixels in the y-axis at the start of the animation */  
  110.     0%   { -webkit-transform: translate(0px, -50px); }   
  111.     /* Move a leaf to 600 pixels in the y-axis at the end of the animation */  
  112.     100% { -webkit-transform: translate(0px650px); }   
  113. }   
  114.   
  115. /* Rotates a leaf from -50 to 50 degrees in 2D space */  
  116. @-webkit-keyframes clockwiseSpin   
  117. {   
  118.     /* Rotate a leaf by -50 degrees in 2D space at the start of the animation */  
  119.     0%   { -webkit-transform: rotate(-50deg); }   
  120.     /*  Rotate a leaf by 50 degrees in 2D space at the end of the animation */  
  121.     100% { -webkit-transform: rotate(50deg); }   
  122. }   
  123.   
  124. /* Flips a leaf and rotates it from 50 to -50 degrees in 2D space */  
  125. @-webkit-keyframes counterclockwiseSpinAndFlip    
  126. {   
  127.     /* Flip a leaf and rotate it by 50 degrees in 2D space at the start of the animation */  
  128.     0%   { -webkit-transform: scale(-1, 1) rotate(50deg); }   
  129.     /* Flip a leaf and rotate it by -50 degrees in 2D space at the end of the animation */  
  130.     100% { -webkit-transform: scale(-1, 1) rotate(-50deg); }   
  131. }   

JavaScript代碼

JavaScript Code復制內容到剪貼板
  1. /* Define the number of leaves to be used in the animation */  
  2. const NUMBER_OF_LEAVES = 30;   
  3.   
  4. /*   
  5.     Called when the "Falling Leaves" page is completely loaded.  
  6. */  
  7. function init()   
  8. {   
  9.     /* Get a reference to the element that will contain the leaves */  
  10.     var container = document.getElementById('leafContainer');   
  11.     /* Fill the empty container with new leaves */  
  12.     for (var i = 0; i < NUMBER_OF_LEAVES; i++)    
  13.     {   
  14.         container.appendChild(createALeaf());   
  15.     }   
  16. }   
  17.   
  18. /*  
  19.     Receives the lowest and highest values of a range and  
  20.     returns a random integer that falls within that range.  
  21. */  
  22. function randomInteger(low, high)   
  23. {   
  24.     return low + Math.floor(Math.random() * (high - low));   
  25. }   
  26.   
  27. /*  
  28.    Receives the lowest and highest values of a range and  
  29.    returns a random float that falls within that range.  
  30. */  
  31. function randomFloat(low, high)   
  32. {   
  33.     return low + Math.random() * (high - low);   
  34. }   
  35.   
  36. /*  
  37.     Receives a number and returns its CSS pixel value.  
  38. */  
  39. function pixelValue(value)   
  40. {   
  41.     return value + 'px';   
  42. }   
  43.   
  44. /*  
  45.     Returns a duration value for the falling animation.  
  46. */  
  47.   
  48. function durationValue(value)   
  49. {   
  50.     return value + 's';   
  51. }   
  52.   
  53. /*  
  54.     Uses an img element to create each leaf. "Leaves.css" implements two spin   
  55.     animations for the leaves: clockwiseSpin and counterclockwiseSpinAndFlip. This  
  56.     function determines which of these spin animations should be applied to each leaf.  
  57.  
  58. */  
  59. function createALeaf()   
  60. {   
  61.     /* Start by creating a wrapper div, and an empty img element */  
  62.     var leafDiv = document.createElement('div');   
  63.     var image = document.createElement('img');   
  64.   
  65.     /* Randomly choose a leaf image and assign it to the newly created element */  
  66.     image.src = 'images/realLeaf' + randomInteger(1, 5) + '.png';   
  67.   
  68.     leafDiv.style.top = "-100px";   
  69.   
  70.     /* Position the leaf at a random location along the screen */  
  71.     leafDiv.style.left = pixelValue(randomInteger(0, 500));   
  72.   
  73.     /* Randomly choose a spin animation */  
  74.     var spinAnimationName = (Math.random() < 0.5) ? 'clockwiseSpin' : 'counterclockwiseSpinAndFlip';   
  75.   
  76.     /* Set the -webkit-animation-name property with these values */  
  77.     leafDiv.style.webkitAnimationName = 'fade, drop';   
  78.     image.style.webkitAnimationName = spinAnimationName;   
  79.   
  80.     /* Figure out a random duration for the fade and drop animations */  
  81.     var fadeAndDropDuration = durationValue(randomFloat(5, 11));   
  82.   
  83.     /* Figure out another random duration for the spin animation */  
  84.     var spinDuration = durationValue(randomFloat(4, 8));   
  85.     /* Set the -webkit-animation-duration property with these values */  
  86.     leafDiv.style.webkitAnimationDuration = fadeAndDropDuration + ', ' + fadeAndDropDuration;   
  87.   
  88.     var leafDelay = durationValue(randomFloat(0, 5));   
  89.     leafDiv.style.webkitAnimationDelay = leafDelay + ', ' + leafDelay;   
  90.   
  91.     image.style.webkitAnimationDuration = spinDuration;   
  92.   
  93.     // add the <img> to the <div>   
  94.     leafDiv.appendChild(image);   
  95.   
  96.     /* Return this img element so it can be added to the document */  
  97.     return leafDiv;   
  98. }   
  99.   
  100. /* Calls the init function when the "Falling Leaves" page is full loaded */  
  101. window.addEventListener('load', init, false);   

以上就是本文的全部內容,希望對大家學習有所幫助。

標簽:德州 蚌埠 內蒙古 辛集 黃山 楊凌 撫順 鶴崗

巨人網絡通訊聲明:本文標題《逼真的HTML5樹葉飄落動畫》,本文關鍵詞  逼,真的,HTML5,樹葉,飄落,;如發現本文內容存在版權問題,煩請提供相關信息告之我們,我們將及時溝通與處理。本站內容系統采集于網絡,涉及言論、版權與本站無關。
  • 相關文章
  • 下面列出與本文章《逼真的HTML5樹葉飄落動畫》相關的同類信息!
  • 本頁收集關于逼真的HTML5樹葉飄落動畫的相關信息資訊供網民參考!
  • 推薦文章
    91亚洲国产成人精品一区二区三| 国产农村妇女精品一区| 国产网红主播福利一区二区| 鲁一鲁一鲁一鲁一av| 亚洲国产欧美一区二区三区同亚洲| 欧美精品韩国精品| 国产va免费精品高清在线| 天码人妻一区二区三区在线看| 久久久久久伊人| 亚洲视频一区二区三区四区| 日韩欧美一级二级| 奇米视频7777| 亚洲深夜福利在线| 久久久精品国产99久久精品芒果| 麻豆精品传媒视频| 99在线视频精品| 精品99在线视频| 一级特黄色大片| 正在播放一区二区三区| 91视频.com| 91视频 -- 69xx| 亚洲猫色日本管| 在线免费观看视频黄| 6080yy午夜一二三区久久| 国产农村妇女精品一区| 99久久夜色精品国产网站| 久久国产这里只有精品| www日本高清视频| 欧美性感一类影片在线播放| 中文字幕av导航| 国产精品av网站| 中文文字幕一区二区三三| 国产999在线观看| 免费在线a视频| 日韩在线播放中文字幕| 精品久久久免费| 久久99精品久久久久久久青青日本 | 欧美军同video69gay| 久久国产日韩欧美| 国产精品人人妻人人爽| 日韩视频永久免费| 成人一区二区三区视频 | 亚洲aⅴ乱码精品成人区| 久久久精品视频成人| 不许穿内裤随时挨c调教h苏绵| 美女国产一区二区| 播播国产欧美激情| 粉嫩av懂色av蜜臀av分享| 亚洲日本va午夜在线影院| 国产在线青青草| 日韩精品在线一区二区| 国产无套在线观看| 国产日韩专区在线| 日韩美女视频一区| 手机av免费在线观看| 日韩熟女精品一区二区三区| 欧美18—19性高清hd4k| 国产精品69久久久| 欧美日免费三级在线| 免费成人午夜视频| 亚洲欧美成aⅴ人在线观看| 日本在线精品视频| 久草热在线观看| 日韩视频免费中文字幕| 熟女av一区二区| 国产综合香蕉五月婷在线| 欧美日韩在线影院| 免费成人美女女在线观看| 2019中文字幕免费视频| av在线不卡电影| 午夜三级在线观看| 国产精品 欧美在线| 蜜乳av中文字幕| 91精品啪在线观看麻豆免费| 国产喷水吹潮视频www| 精品偷拍各种wc美女嘘嘘| 成人小视频在线观看免费| 九九国产精品视频| 99r国产精品视频| 五月婷婷狠狠干| 国产精品久久久av久久久| 国产一区二区三区四区视频| 久久免费视频在线| 欧美另类高清videos的特点| 亚洲一区二区三区视频播放| 免费一级片91| 日韩一级特黄毛片| 国产精品高潮呻吟| 成人亚洲免费视频| 六月婷婷色综合| av色综合网| 老司机精品视频导航| 欧美一区二区三区在线免费观看 | 国产午夜福利一区| 日韩精品一区二区视频| 免费人成又黄又爽又色| 欧美日韩精品高清| 国产a免费视频| 日本aⅴ大伊香蕉精品视频| 日本不卡123| 日本一区精品| 日本精品一区二区三区四区的功能| 国产女人18毛片| 亚洲一区二区高清| 亚洲性猛交xxxx乱大交| 日韩最新免费不卡| 成人在线视频首页| 国产成人一级片| 奇米成人av国产一区二区三区| 欧美成人免费看| 91久久久久久久一区二区| 亚洲国产日韩在线一区模特| 熟女av一区二区| 久久精品在线播放| 精品成人av一区| 亚洲天堂伊人网| 中文字幕精品—区二区| 国产成人精品一区二区三区四区| 日日噜噜噜噜夜夜爽亚洲精品| 黑人巨大精品欧美一区二区三区 | 午夜精品一区二区三区视频免费看| 91午夜交换视频| 午夜一区二区三视频在线观看| 欧美一区二区三区视频在线| 久久久久91| 精品久久久久久中文字幕2017| 亚洲一级一级97网| 成人免费视频一区| 中国一级片在线观看| 国产高清一区二区三区| 亚洲精品中文字| 日韩在线一区二区| 操她视频在线观看| 蜜桃日韩视频| 日韩av网站大全| 成人91在线观看| 久久久久噜噜噜亚洲熟女综合| 一区二区三区在线视频看| 色悠悠久久久久| 亚洲欧美色图小说| 美女精品一区| 卡一卡二国产精品 | 久久精品人人爽| 亚洲日本一区二区三区| 国产在线视频在线观看| 在线一区高清| 久久久久中文字幕2018| 在线亚洲一区观看| www.一区二区| 国产又粗又猛又黄| 国产精品无码午夜福利| 中文字幕乱码免费| 国产99久久久欧美黑人 | 亚洲国产精品久久不卡毛片| 国产精品特级毛片一区二区三区| 欧洲在线免费视频| 亚洲自拍三区| 国产精品成人一区二区| 亚洲精品国产福利| 好吊成人免视频| 国产日本亚洲高清| 日韩成人精品在线观看| 亚洲天堂一区在线| 亚洲永久精品ww.7491进入| 日本十八禁视频无遮挡| 欧美少妇一区| 98精品国产高清在线xxxx天堂| 亚洲福利视频网| 午夜精品久久久久久久久久| 久久成人免费电影| 天堂中文资源在线观看| 免费黄色片视频| 九热这里只有精品| 国产67194| 艳妇乳肉亭妇荡乳av| 在线观看国产中文字幕| 国产精品333| 91麻豆天美传媒在线| 岛国视频一区免费观看| 欧美成人精品xxx| 亚洲在线视频免费观看| 国产一区二区三区免费观看| 亚洲av无码一区二区三区dv| 国产亚洲欧美在线精品| 四虎精品免费视频| 欧在线一二三四区| 日本在线播放一区| 国产主播喷水一区二区| 久久综合网hezyo| 亚洲高清av在线| 欧美另类一区二区三区| 亚洲国产视频网站| 国产精品久久久久影视| 成人三级伦理片| 精品亚洲成a人在线观看| 亚洲美女性生活| 中文字幕在线视频免费| 国产精品久久久久久久妇| 呻吟揉丰满对白91乃国产区| 国产性猛交96| 丰满少妇一区二区三区专区| 日韩欧美国产片| 成年人网站大全| 精品中文字幕av| 日本一区二区黄色| 国产av无码专区亚洲精品| 亚洲国产精品无码观看久久| 欧美日韩dvd| 97免费视频观看| 日本十八禁视频无遮挡| 丰满人妻中伦妇伦精品app| 成人毛片一区二区| 91人人澡人人爽人人精品| 男女男精品视频站| 99999精品| 美女爆乳18禁www久久久久久| 亚洲一区二区三区黄色| 国产一级免费片| 国产精品成人在线视频| 男人与禽猛交狂配| 国产精品老女人| 无码久久精品国产亚洲av影片| 在线观看一二三区| 久久国产一二区| 高清国产一区二区| 国产精品拍天天在线| 婷婷久久综合九色综合伊人色| 在线视频中文字幕一区二区| 欧美日韩不卡在线| 综合136福利视频在线| 98精品在线视频| 91在线精品观看| 久久av喷吹av高潮av| 一区二区三区免费播放| av无码av天天av天天爽| 久久精品国产亚洲AV无码麻豆| 一本一道精品欧美中文字幕| 蜜桃av一区二区三区电影| 91丨国产丨九色丨pron| 亚洲综合丁香婷婷六月香| 日韩欧美国产综合| 91精品国产乱码久久久久久蜜臀| 91探花福利精品国产自产在线| 国产精品99久久久久久大便| 三级av免费看| 91九色丨porny丨肉丝| 全部av―极品视觉盛宴亚洲| 亚洲欧洲av色图| 日韩一区二区三区观看| 91大神福利视频在线| 日韩电影免费观看在| 久久久久久久高清| 日韩久久中文字幕| 成人蜜臀av电影| 精品1区2区3区| 欧美最近摘花xxxx摘花| 久久av秘一区二区三区| jizz中文字幕| 久久综合中文| 欧美日韩黄色大片| 久久精品国产96久久久香蕉| 精品欧美一区二区三区久久久| 男人揉女人奶房视频60分| 日韩精品在线免费看| 久久久久久久久99| 国产视频一区在线观看| 欧美亚洲一区二区在线| 日韩中文字幕网站| 精品亚洲国产成av人片传媒 | 亚洲综合一区二区精品导航| 色中文字幕在线观看| 亚洲国产一区二区精品视频 | 视频二区在线播放| 国产亚洲精品码| 91亚洲精品乱码久久久久久蜜桃| 欧美一级专区免费大片| 国产精品一区二区三区免费观看| www.成人黄色| 国产精品一区二区黑人巨大| 精品久久久精品| 国产精品免费一区| 亚洲欧美日韩三级| 久久97超碰色| 精品视频一区 二区 三区| 91老司机在线| 国产第一页精品| 日韩欧美国产成人| 黄色高清视频网站| 国产一区二区美女诱惑| 91精品欧美一区二区三区综合在| 成人在线观看视频网站| www.se五月| 三级久久三级久久久| 欧美在线观看一区二区| 宅男一区二区三区| 久草热8精品视频在线观看| 欧美在线激情视频| av五月天在线| 亚洲国产成人精品一区二区三区| 亚洲香肠在线观看| 国产成人亚洲精品| 国产黄色片在线免费观看| 日韩精品一区二| 黄页网站在线看| 亚洲国产另类精品专区| 欧美性视频在线播放| 永久免费看片在线播放| 亚洲精品国产一区二区精华液| 青草热久免费精品视频| 成年女人免费视频| 国产酒店精品激情| 亚洲欧洲午夜一线一品| 日本www在线播放| 五月婷婷开心中文字幕| 亚洲变态欧美另类捆绑| 少妇性饥渴无码a区免费| 久久99国内精品| 97欧美精品一区二区三区| 成人免费看aa片| 亚洲一区二区三区四区五区中文| 欧美一二三区| 亚洲AV午夜精品| 日韩天堂在线视频| 日本黄色录像视频| 国产精品嫩草影院com| 中文字幕一区综合| 99久久精品99国产精品| 先锋在线资源一区二区三区| 激情综合一区二区三区| 美乳视频一区二区| 午夜精品久久久久久久99| 夜夜嗨av色一区二区不卡| 粉嫩av蜜桃av蜜臀av| 一本大道av伊人久久综合| 欧美一级片中文字幕| 久久久99免费| 中文字幕在线亚洲三区| 成人动漫一区二区三区| 欧美久久综合性欧美| 麻豆成人久久精品二区三区红| 国产剧情日韩欧美| 国产高清在线免费| 日本精品视频在线播放| 国产一区二区三区黄片| 4388成人网| 搡老岳熟女国产熟妇| 亚洲字幕一区二区| 久久婷婷激情| 国产精品久久久久久久久久久久午夜片 | 国产一区二区伦理| 日韩高清专区| 亚洲国产成人在线| 91黄色小网站| 午夜精品成人在线视频| 亚洲人成无码www久久久| 亚洲图片自拍偷拍| 午夜免费一级片| 欧美日韩在线三区| 国产福利在线导航| 久久精品视频网站| jlzzjlzzjlzz亚洲人| 97久久天天综合色天天综合色hd| 国产一区二区0| 免费人成自慰网站| 亚洲国产欧美日韩另类综合| 中文字幕第九页| 亚洲人午夜精品| 一级黄色片在线| 激情五月综合色婷婷一区二区 | 欧美精品日日鲁夜夜添| 日本高清一二三区| 国产成人综合久久| 懂色中文一区二区在线播放| 国产成人a亚洲精v品无码| 欧美日韩和欧美的一区二区| 久久影院一区二区| 国产女同一区二区| 国产欧美综合在线| 在线观看国产免费视频| 欧美俄罗斯乱妇| 国产99久久久国产精品潘金| 国产小视频精品| 亚洲欧美日韩一区二区三区在线| 国产孕妇孕交大片孕| 色中色综合成人| 538prom精品视频线放| 怡红院男人天堂| 蜜臀精品一区二区| 天天射天天色天天干| 亚洲精品亚洲人成人网在线播放| 欧美xxxxx在线视频| 久久久999精品免费| 激情成人综合网| 91麻豆精品国产91久久综合| 欧美一级二级三级九九九| 亚洲国产精品大全| 91性感美女视频| 欧美日韩精品区| 无遮挡又爽又刺激的视频| 国产精品视频午夜| 精品视频999| 蜜臀av亚洲一区中文字幕| 欧美日韩高清丝袜| 国产日韩第一页| 日韩av免费看网站| 亚洲第一免费网站| 亚洲影院免费观看| 理论片日本一区| 精品人妻一区二区三区潮喷在线| 亚洲精品乱码久久久久久动漫|