html5+css3动画
2015-06-11 17:51
621 查看
此动画仅限谷歌浏览器····
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
</head>
<style type="text/css">
//格式的大小与循环移动改变颜色
.myfirst{
height: 200px;
background:red;
width: 200px;
position:relative;
-webkit-animation: myfirst 5s linear 0s infinite alternate;
}
//颜色与位置的变化
@-webkit-keyframes myfirst /* Safari and Chrome */
{
0% {background:red; left:0px; top:0px;}
25% {background:yellow; left:200px; top:0px;}
50% {background:blue; left:500px; top:500px;}
75% {background:green; left:0px; top:200px;}
100% {background:red; left:0px; top:0px;}
}
</style>
<body>
<div class="myfirst"></div>
</body>
</html> 阅读更多
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
</head>
<style type="text/css">
//格式的大小与循环移动改变颜色
.myfirst{
height: 200px;
background:red;
width: 200px;
position:relative;
-webkit-animation: myfirst 5s linear 0s infinite alternate;
}
//颜色与位置的变化
@-webkit-keyframes myfirst /* Safari and Chrome */
{
0% {background:red; left:0px; top:0px;}
25% {background:yellow; left:200px; top:0px;}
50% {background:blue; left:500px; top:500px;}
75% {background:green; left:0px; top:200px;}
100% {background:red; left:0px; top:0px;}
}
</style>
<body>
<div class="myfirst"></div>
</body>
</html> 阅读更多
相关文章推荐
- 8款强大的CSS3/HTML5动画及应用源码
- HTML5 SVG和CSS3超酷文字遮罩动画特效
- 【HTML5学习笔记】34:CSS3动画效果
- html5与css3权威指南--读书笔记---css3中的动画功能
- css3 html5 3D动画练习
- 分享9款用HTML5/CSS3制作的动物人物动画
- 【前端】【html5/css3】前端学习之路(四)(CSS3动画/CSS3伸缩布局/CSS3背景)
- html5和css3动画排列人物头像演示
- 分享9款用HTML5/CSS3制作的动物、人物动画
- HTML5和CSS3动画效果知识点总结
- 8款强大的CSS3/HTML5动画及应用源码
- HTML5 - 用CSS3动画制作场景切换效果(移动,旋转,淡入淡出等)
- 一款html5和css3实现的小机器人走路动画
- HTML5+CSS3构建同页面表单间的动画切换
- HTML5: 10 个顶级使用 CSS3 动画的网页
- HTML5 CSS3 诱人的实例: 3D立方体旋转动画
- 分享9款用HTML5/CSS3制作的动物人物动画
- 基于HTML5/CSS3可折叠的3D立方体动画
- 如何使用html5与css3完成google涂鸦动画
- HTML5 CSS3 诱人的实例: 3D立方体旋转动画