css3如何实现飘动的云朵动画?本篇文章小编给大家分享一下CSS3实现飘动的云朵动画代码,文章代码介绍的很详细,小编觉得挺不错的,现在分享给大家供大家参考,有需要的小伙伴们可以来看看。

运行效果

html

CSS3 Cloud Animations By Montana Flynn

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%

}

}

html5 云朵飘动效果,CSS3如何实现飘动的云朵动画 CSS3实现飘动的云朵动画代码相关推荐

  1. css3 云朵飘动效果动画

    2019独角兽企业重金招聘Python工程师标准>>> 先贴代码: css部分: @-webkit-keyframes fadeIn { 0% { opacity: 0.2;widt ...

  2. css3蒲公英飘动效果_css3 云朵飘动效果动画

    先贴代码: css部分: @-webkit-keyframes fadeIn { 0% { opacity: 0.2;width:100%; /*初始状态 透明度为0.2大小为100%*/ } 10% ...

  3. html白云飘动效果特效代码,css3实现简单的白云飘动背景特效

    这是一款非常简单的纯CSS3白云飘动背景特效.该白云飘动特效使用CSS animation动画来控制不同的白云,以不同的速度进行运动,形成白云飘动的效果. HTML结构 该白云飘动特效的HTML结果非 ...

  4. html飘羽毛效果,HTML5实现的柳叶飘动效果

    HTML5实现的柳叶飘动效果_网页代码站(www.webdm.cn) .qmg_leaf_div{width:500px;height:200px;overflow:hidden;} .qmg_lea ...

  5. css3蒲公英飘动效果_CSS3 Animation制作飘动的浮云和星星效果

    带平行视差效果的星星 先看效果: 下面我们利用CSS3的animation写出这样的动画来,要点就是: 用动画不停改变背景图片位置; 动画高为无限循环; 在页面放三个DIV,首先将他们大小铺满整个窗口 ...

  6. css3蒲公英飘动效果_纯CSS3逼真的气球漂浮动画特效

    这是一款使用纯CSS3制作的效果非常逼真的气球漂浮动画特效.这个气球飘动效果主要使用CSS3 animation来制作,通过控制不同气球的位移和旋转角度,来达到气球漂浮的效果. 制作方法 HTML结构 ...

  7. OpenGL(十九)——Qt OpenGL波动纹理(旗子的飘动效果)

    OpenGL(十九)--Qt OpenGL波动纹理(旗子的飘动效果) 一.场景 在日常的项目中,我们经常会实现波动的一些纹理效果,比如飘动的旗子,水的波纹,地图上某一点的波浪圈圈等...,本篇介绍波动 ...

  8. html5火焰字体效果,CSS3文字特效属性text-shadow如何实现火焰文字的效果

    CSS3文字特效属性text-shadow如何实现火焰文字的效果 发布时间:2020-07-14 09:15:52 来源:亿速云 阅读:177 作者:Leah 本篇文章给大家分享的是有关CSS3文字特 ...

  9. 【动画消消乐】HTML+CSS 白云飘动效果 072

    前言 Hello!小伙伴! 非常感谢您阅读海轰的文章,倘若文中有错误的地方,欢迎您指出-   自我介绍 ଘ(੭ˊᵕˋ)੭ 昵称:海轰 标签:程序猿|C++选手|学生 简介:因C语言结识编程,随后转入计 ...

  10. html5 制作书架展示 PHP,简单做出HTML5翻页效果文字特效

    简单做出HTML5翻页效果文字特效 之前在网上看到一款比较有新意的HTML5文字特效,文字效果是当鼠标滑过是出现翻开折叠的效果,类似书本翻页.于是我兴致勃勃的点开源码看了一下,发现其实实现也挺简单的, ...

最新文章

  1. sql 拼接int类型的字段_SQL 基础教程—第一章:4. 表的创建
  2. input 不显示边框_不需要使用JavaScript
  3. Neo4j【付诸实践 01】SpringBoot集成报错org.neo4j.driver.exceptions.ClientException:服务器不支持此驱动程序支持的任何协议版本(解决+源代码)
  4. 9种排序算法在四种数据分布下的速度比较
  5. 云计算技术背后的天才程序员:Open VSwitch鼻祖Martin Casado
  6. 制作 小 linux 教程,【NanoPi NEO Plus2开发板试用体验】编译uboot和linux制作最小根文件系统制作刷机包---详细教程...
  7. 2020盲盒经济洞察报告
  8. 电大计算机机考excel,中央电大计算机应用机考excel电子表格模板题库存(118页)-原创力文档...
  9. 【操作系统/OS笔记18】虚拟文件系统概念
  10. bzoj 4260: Codechef REBXOR(01字典树)
  11. [总结] 本人代表性博客总结
  12. 安装配置文件共享协议(SAMBA)
  13. centos6.x系统内核升级的方法
  14. xen-tools虚拟机快速部署
  15. Web 端集成融云 SDK 如何发送正确图片消息给移动端展示?
  16. html 展开 折叠,HTML实现点击展开和收起
  17. 去了一趟少林寺 竟然发现...
  18. 如何设置浏览器标签图标
  19. 电脑微信QQ正常登录,浏览器无法访问网站
  20. Linux 源码分析 之 udp 分析 二 sendto

热门文章

  1. 网页中使用Agent.Control(Office助手动画)
  2. 用pako压缩json数据传输至后台
  3. 各种现代方法和技术在储集层研究中的运用
  4. exit code: 127是什么
  5. WOFOST模型Matlab,WOFOST Model Based on Soil Moisture Driven and Its Adaptability
  6. matlab 画频率统计图(柱状图)bar hist
  7. JavaScript 入门知识点总结
  8. 最小二乘法的最简单的几何解释,非常直观!
  9. 长沙医学院英语四级计算机,长沙医学院2018上半年英语四六级考试报名工作的通知...
  10. 计算机纸带打孔编程,人机交互演变史:从打孔纸带到人工智能