最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

CSS3 實現飄動的云朵動畫

  發(fā)布時間:2020-12-01 17:32:35   作者:Montana Flynn   我要評論
這篇文章主要介紹了CSS3 實現飄動的云朵動畫,幫助大家更好的理解和學習css3的使用,感興趣的朋友可以了解下

運行效果

html

<head>
  <meta charset='UTF-8'>
  <title>CSS3 Cloud Animations By Montana Flynn</title>
</head>

<body>
  <div class="sky">
    <div class="moon"></div>
    <div class="clouds_two"></div>
    <div class="clouds_one"></div>
    <div class="clouds_three"></div>
  </div>
</body>

css

html, body {
  margin: 0;
  height: 100%
}

.sky {
  height: 480px;
  background: #007fd5;
  position: relative;
  overflow: hidden;
  -webkit-animation: sky_background 50s ease-out infinite;
  -moz-animation: sky_background 50s ease-out infinite;
  -o-animation: sky_background 50s ease-out infinite;
  -webkit-transform: translate3d(0, 0, 0);
  -moz-transform: translate3d(0, 0, 0);
  -o-transform: translate3d(0, 0, 0)
}

.moon {
  background: url("http://i.imgur.com/wFXd68N.png");
  position: absolute;
  left: 0;
  height: 300%;
  width: 300%;
  -webkit-animation: moon 50s linear infinite;
  -moz-animation: moon 50s linear infinite;
  -o-animation: moon 50s linear infinite;
  -webkit-transform: translate3d(0, 0, 0);
  -moz-transform: translate3d(0, 0, 0);
  -o-transform: translate3d(0, 0, 0)
}

.clouds_one {
  background: url("http://www.scri8e.com/stars/PNG_Clouds/zc06.png?filename=./zc06.png&w0=800&h0s=289&imgType=3&h1=50&w1=140");
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 300%;
  -webkit-animation: cloud_one 50s linear infinite;
  -moz-animation: cloud_one 50s linear infinite;
  -o-animation: cloud_one 50s linear infinite;
  -webkit-transform: translate3d(0, 0, 0);
  -moz-transform: translate3d(0, 0, 0);
  -o-transform: translate3d(0, 0, 0)
}

.clouds_two {
  background: url("http://freepngimages.com/wp-content/uploads/2016/02/clouds-transparent-background-2.png");
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 300%;
  -webkit-animation: cloud_two 75s linear infinite;
  -moz-animation: cloud_two 75s linear infinite;
  -o-animation: cloud_two 75s linear infinite;
  -webkit-transform: translate3d(0, 0, 0);
  -moz-transform: translate3d(0, 0, 0);
  -o-transform: translate3d(0, 0, 0)
}

.clouds_three {
  background: url("http://montanaflynn.me/lab/css-clouds/images/cloud_three.png");
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 300%;
  -webkit-animation: cloud_three 100s linear infinite;
  -moz-animation: cloud_three 100s linear infinite;
  -o-animation: cloud_three 100s linear infinite;
  -webkit-transform: translate3d(0, 0, 0);
  -moz-transform: translate3d(0, 0, 0);
  -o-transform: translate3d(0, 0, 0)
}

@-webkit-keyframes sky_background {
  0% {
    background: #007fd5;
    color: #007fd5
  }
  50% {
    background: #000;
    color: #a3d9ff
  }
  100% {
    background: #007fd5;
    color: #007fd5
  }
}

@-webkit-keyframes moon {
  0% {
    opacity: 0;
    left: -200% -moz-transform: scale(0.5);
    -webkit-transform: scale(0.5);
  }
  50% {
    opacity: 1;
    -moz-transform: scale(1);
    left: 0% bottom: 250px;
    -webkit-transform: scale(1);
  }
  100% {
    opacity: 0;
    bottom: 500px;
    -moz-transform: scale(0.5);
    -webkit-transform: scale(0.5);
  }
}

@-webkit-keyframes cloud_one {
  0% {
    left: 0
  }
  100% {
    left: -200%
  }
}

@-webkit-keyframes cloud_two {
  0% {
    left: 0
  }
  100% {
    left: -200%
  }
}

@-webkit-keyframes cloud_three {
  0% {
    left: 0
  }
  100% {
    left: -200%
  }
}

@-moz-keyframes sky_background {
  0% {
    background: #007fd5;
    color: #007fd5
  }
  50% {
    background: #000;
    color: #a3d9ff
  }
  100% {
    background: #007fd5;
    color: #007fd5
  }
}

@-moz-keyframes moon {
  0% {
    opacity: 0;
    left: -200% -moz-transform: scale(0.5);
    -webkit-transform: scale(0.5);
  }
  50% {
    opacity: 1;
    -moz-transform: scale(1);
    left: 0% bottom: 250px;
    -webkit-transform: scale(1);
  }
  100% {
    opacity: 0;
    bottom: 500px;
    -moz-transform: scale(0.5);
    -webkit-transform: scale(0.5);
  }
}

@-moz-keyframes cloud_one {
  0% {
    left: 0
  }
  100% {
    left: -200%
  }
}

@-moz-keyframes cloud_two {
  0% {
    left: 0
  }
  100% {
    left: -200%
  }
}

@-moz-keyframes cloud_three {
  0% {
    left: 0
  }
  100% {
    left: -200%
  }
}

以上就是CSS3 實現飄動的云朵動畫的詳細內容,更多關于CSS3 飄動的云的資料請關注腳本之家其它相關文章!

相關文章

  • CSS3中的字體及相關屬性詳解

    這篇文章主要介紹了CSS3中的字體及相關屬性,本文通過實例代碼給大家介紹的非常詳細,對大家的學習或工作具有一定的參考借鑒價值,需要的朋友可以參考下
    2025-06-12
  • CSS3實現的賬號密碼輸入框提示效果

    本文詳細解析了CSS3中實現賬號密碼輸入框提示特效的原理和方法,包括HTML5的placeholder屬性與CSS3新特性如偽類選擇器、動態(tài)效果和過渡動畫的結合使用,感興趣的朋友跟隨小
    2025-05-14
  • CSS3 布局樣式及其應用舉例

    CSS3的布局特性為前端開發(fā)者提供了無限可能,無論是Flexbox的一維布局還是Grid的二維布局,它們都能夠幫助開發(fā)者以更清晰、簡潔的方式實現復雜的網頁布局,本文給大家介紹C
    2025-05-14
  • CSS3 Facebook-style Buttons 項目常見問題及最新解決方案

    CSS3 Facebook-style Buttons 是一個開源項目,旨在通過簡單的 CSS 代碼來重現 Facebook 按鈕和工具欄的外觀,本文給大家介紹CSS3 Facebook-style Buttons 項目常見問題及
    2025-05-14
  • 使用animation.css庫快速實現CSS3旋轉動畫效果

    隨著Web技術的不斷發(fā)展,動畫效果已經成為了網頁設計中不可或缺的一部分,本文將深入探討animation.css的工作原理,如何使用以及其在實際項目中的應用,感興趣的朋友一起看
    2025-05-14
  • CSS3 最強二維布局系統(tǒng)之Grid 網格布局

    CS3的Grid網格布局是目前最強的二維布局系統(tǒng),可以同時對列和行進行處理,將網頁劃分成一個個網格,可以任意組合不同的網格,做出各種各樣的布局,本文介紹CSS3 最強二維布局系
    2025-02-27
  • 如何使用CSS3實現波浪式圖片墻

    本文介紹了如何使用CSS3的transform屬性和動畫技巧實現波浪式圖片墻,通過設置圖片的垂直偏移量,并使用動畫使其周期性地改變位置,可以創(chuàng)建出動態(tài)且具有波浪效果的圖片墻,同
    2025-02-27
  • CSS3模擬實現一個雷達探測掃描動畫特效(最新推薦)

    文章介紹了如何使用CSS3實現一個雷達探測掃描的效果,包括夜色背景、蜘蛛網盤、掃描體的轉動效果、尾巴陰影以及被掃描到的光點,通過HTML和CSS的配合,實現了豐富的動畫效果,
    2025-02-21
  • css3 display:flex 彈性盒模型的使用方法

    CSS3的Flexbox是一種強大的布局模式,通過設置display:flex可以輕松實現對齊、排列和分布網頁元素,它解決了傳統(tǒng)布局方法中的對齊、間距分配和自適應布局等問題,接下來通過本
    2025-02-19
  • css3 實現icon刷新轉動效果

    本文給大家介紹css3 實現icon刷新轉動效果,文章開頭給大家介紹了webkit-transform、animation、@keyframes這三個屬性,結合實例代碼給大家介紹的非常詳細,感興趣的朋友一
    2025-02-19

最新評論

抚州市| 昆明市| 商南县| 龙井市| 玉树县| 封丘县| 南昌县| 绍兴县| 龙陵县| 柳州市| 广南县| 长乐市| 卓尼县| 都江堰市| 宁蒗| 阳新县| 天门市| 平原县| 望江县| 河北省| 石狮市| 桂林市| 台东市| 华池县| 绥宁县| 乐东| 钟祥市| 衡南县| 文化| 南皮县| 肥东县| 定远县| 桐梓县| 贵溪市| 安顺市| 巴塘县| 双牌县| 新蔡县| 土默特左旗| 中江县| 晋江市|