css3animation动画
来源:互联网 发布:lol网络不卡瞬移 编辑:程序博客网 时间:2024/04/28 17:25
<!DOCTYPE html>
<html lang="en">
<head>
<title>css3animation动画</title>
<meta charset="utf-8" />
<style type="text/css">
@keyframes alt{
0% {background-color: red;left:400px;top:0px;}
25% {background-color: blue;left:800px;top:0px;}
50% {background-color: green;left:800px;top:400px;}
75% {background-color: purple;left:400px;top:400px;}
100% {background-color: pink;left:400px;top:0px;}
}
@-webkit-keyframes alt{/*Safari 和 Chrome*/
0% {background-color: red;left:400px;top:0px;}
25% {background-color: blue;left:800px;top:0px;}
50% {background-color: green;left:800px;top:400px;}
75% {background-color: purple;left:400px;top:400px;}
100% {background-color: pink;left:400px;top:0px;}
}
@-moz-keyframes alt{/*Firefox*/
0% {background-color: red;left:400px;top:0px;}
25% {background-color: blue;left:800px;top:0px;}
50% {background-color: green;left:800px;top:400px;}
75% {background-color: purple;left:400px;top:400px;}
100% {background-color: pink;left:400px;top:0px;}
}
@-o-keyframes alt{/*Opera*/
0% {background-color: red;left:400px;top:0px;}
25% {background-color: blue;left:800px;top:0px;}
50% {background-color: green;left:800px;top:400px;}
75% {background-color: purple;left:400px;top:400px;}
100% {background-color: pink;left:400px;top:0px;}
}
.d{
text-align: center;
position: relative;
padding:5px;
width: 100px;
border: 1px solid #5D81AB;
border-radius: 10px;
animation: alt 5s linear infinite alternate;/* Firefox: */
-moz-animation: alt 5s linear infinite alternate;/* Safari 和 Chrome: */
-webkit-animation: alt 5s linear infinite alternate;/* Opera: */
-o-animation: alt 5s linear infinite alternate;
}
</style>
<script type="text/javascript">
</script>
</head>
<body>
<div class="d">animation动画</div>
<div class="d"></div>
</body>
</html>
<html lang="en">
<head>
<title>css3animation动画</title>
<meta charset="utf-8" />
<style type="text/css">
@keyframes alt{
0% {background-color: red;left:400px;top:0px;}
25% {background-color: blue;left:800px;top:0px;}
50% {background-color: green;left:800px;top:400px;}
75% {background-color: purple;left:400px;top:400px;}
100% {background-color: pink;left:400px;top:0px;}
}
@-webkit-keyframes alt{/*Safari 和 Chrome*/
0% {background-color: red;left:400px;top:0px;}
25% {background-color: blue;left:800px;top:0px;}
50% {background-color: green;left:800px;top:400px;}
75% {background-color: purple;left:400px;top:400px;}
100% {background-color: pink;left:400px;top:0px;}
}
@-moz-keyframes alt{/*Firefox*/
0% {background-color: red;left:400px;top:0px;}
25% {background-color: blue;left:800px;top:0px;}
50% {background-color: green;left:800px;top:400px;}
75% {background-color: purple;left:400px;top:400px;}
100% {background-color: pink;left:400px;top:0px;}
}
@-o-keyframes alt{/*Opera*/
0% {background-color: red;left:400px;top:0px;}
25% {background-color: blue;left:800px;top:0px;}
50% {background-color: green;left:800px;top:400px;}
75% {background-color: purple;left:400px;top:400px;}
100% {background-color: pink;left:400px;top:0px;}
}
.d{
text-align: center;
position: relative;
padding:5px;
width: 100px;
border: 1px solid #5D81AB;
border-radius: 10px;
animation: alt 5s linear infinite alternate;/* Firefox: */
-moz-animation: alt 5s linear infinite alternate;/* Safari 和 Chrome: */
-webkit-animation: alt 5s linear infinite alternate;/* Opera: */
-o-animation: alt 5s linear infinite alternate;
}
</style>
<script type="text/javascript">
</script>
</head>
<body>
<div class="d">animation动画</div>
<div class="d"></div>
</body>
</html>
0 0
- css3animation动画
- CSS3animation动画 + 动画如何切换
- CSS3animation,transform,translate,translation的区别
- 动画
- 动画
- 动画
- 动画
- 动画
- 动画
- 动画
- 动画
- 动画
- 动画
- 动画
- 动画
- 动画
- 动画
- 动画
- android dialog圆角显示及解决出现的黑色棱角
- sql server数据库中With as 的使用解析
- linux找不到动态链接库 .so文件的解决方法
- Valid Palindrome
- CC9
- css3animation动画
- 传智播客2013/2014年ios就业班全套教程/黑马程序员ios就业班全套教程
- java使用svnkit操作svn客户端
- 工作记录---gdb调试
- <C/C++基础>关键字typedef用法总结
- 个性化你的IE,把你的名字刻在IE上!
- 实验一,八皇后问题
- live555本机和arm平台的移植
- Binary Tree Preorder Traversal