首页

源码搜藏网

首页 > 开发教程 > CSS3教程 >

CSS3动画animation实现云彩向左滚动

创建时间:2014-06-16 23:26  

点评:这篇文章主要介绍了CSS3动画animation如何实现云彩向左滚动的效果,需要的朋友可以参考下 实现的图像动画效果大致是这样的:云彩向左滚动!
CSS3动画animation实现云彩向左滚动 
【代码效果】

复制代码代码如下:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>CSS3动画animation实现漂浮的云</title>
<style type="text/css">
html,body {
padding: 0;
margin: 0;
}
.wrap {
height: 190px;
width: 600px;
margin: 150px auto 0;
background: url('bg-clouds.png');
-webkit-animation:cloud 40s linear infinite;
-o-animation:cloud 40s linear infinite;
}
@-webkit-keyframes cloud {
from{background-position:0% 0%}
to{background-position:50% 50%}
}
</style>
</head>
<body>
<div class="wrap"></div>
</body>
</html>

【用到的素材】
CSS3动画animation实现云彩向左滚动
上一篇:css3实现可滑动跳转的分页插件示例
下一篇:css3 自定义字体font-face使用介绍

相关内容

热门推荐