animation(一):漂浮的白云
来源:互联网 发布:特朗普执政知乎 编辑:程序博客网 时间:2024/04/30 00:40
漂浮的白云主要通过远景白云和近景白云来实现立体漂浮效果。远景和近景分别使用两张背景图片,通过改变其背景定位来实现白云移动效果,通过设置不同的动画持续时间来实现交错漂浮的效果
<!DOCTYPE html>
<html lang="en"><head>
<meta charset="UTF-8">
<title>Document</title>
<style>
.box{
position: relative;
height: 300px;
width: 500px;
}
.in1,.in2{
position: absolute;
height: 100%;
width: 100%;
background-size:cover;
-webkit-animation: move 100s infinite linear alternate;
animation: move 100s infinite linear alternate;
}
@-webkit-keyframes move{
100%{background-position: 500% 0;}
}
@keyframes move{
100%{background-position: 500% 0;}
}
.in1{
background-image: url('http://sandbox.runjs.cn/uploads/rs/26/ddzmgynp/cloud.png');
}
.in2{
background-image: url('http://sandbox.runjs.cn/uploads/rs/26/ddzmgynp/cloud1.png');
-webkit-animation-duration: 10s;
animation-duration: 10s;
}
</style>
</head>
<body>
<div class="box">
<div class="in1"></div>
<div class="in2"></div>
</div>
</body>
</html>
阅读全文
0 0
- animation(一):漂浮的白云
- CSS3动画animation实现漂浮的云
- 白云一键重装系统
- 重装系统 白云一键重装系统
- 用CSS3的animation轻松实现背景动画:漂浮的云
- 白云悠悠我的梦
- 白云一键重装系统win7旗舰版
- QML的animation framework(一)
- 漂浮的图片
- 漂浮广告的代码
- 网页漂浮的js
- 漂浮的图片
- 漂浮的云
- Android 漂浮的Activity
- 漂浮窗口的实现
- Android 漂浮的Activity
- UGUI的漂浮效果
- 讨论风采和蓝天白云的校园
- Python+selenium运行出错'Application' executable may have wrong permissions.'chromedriver' executable nee
- 数据仓库系统的运维优化
- Maven创建父子工程
- CodeForces601D【单调栈维护最大值】
- mysql中my.ini文件的位置
- animation(一):漂浮的白云
- Rxjava学习笔记
- Python的类方法、静态方法和实例化方法
- css规则
- Swift
- 美团逆向-干掉反动态调试
- 第一章 引论
- 关于路径问题
- 算法