css3.0实现背景旋转的方法
来源:互联网 发布:编程算法是什么 编辑:程序博客网 时间:2024/06/02 09:37
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>test</title>
<style type="text/css">
/*css3.0 的从from 到to的改变 */
@-webkit-keyframes spin {
from { -webkit-transform: rotate(-55deg) }
to { -webkit-transform: rotate(305deg) }
}
@-moz-keyframes spin{
from { -moz-transform: rotate(-55deg) }
to { -moz-transform: rotate(305deg) }
}
@-ms-keyframes spin {
from { -ms-transform: rotate(-55deg) }
to { -ms-transform: rotate(305deg) }
}
/* t1 初始形态 */
#t1{
width:66px;
height:66px;
background-image:url(http://img.blog.csdn.net/20130618151427656);
display: block;
position: absolute;
-moz-transform: rotate(-55deg);
-webkit-transform: rotate(-55deg);
-ms-transform: rotate(-55deg);
/* webkit chrome, safari, mobile */
-webkit-animation-name: spin;
-webkit-animation-duration: 5000ms; /* 40 seconds */
-webkit-animation-iteration-count: infinite;
-webkit-animation-timing-function: linear;
/* ff */
-moz-animation-name: spin;
-moz-animation-duration: 5000ms; /* 40 seconds */
-moz-animation-iteration-count: infinite;
-moz-animation-timing-function: linear;
/* ie */
-ms-animation-name: spin;
-ms-animation-duration: 5000ms; /* 40 seconds */
-ms-animation-iteration-count: infinite;
-ms-animation-timing-function: linear;
}
</style>
</head>
<body>
<div id="t1"></div>
<p>css的动画基本上可以说是已经可以独当一面了,呵呵。学习学习</p>
</body>
</html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>test</title>
<style type="text/css">
/*css3.0 的从from 到to的改变 */
@-webkit-keyframes spin {
from { -webkit-transform: rotate(-55deg) }
to { -webkit-transform: rotate(305deg) }
}
@-moz-keyframes spin{
from { -moz-transform: rotate(-55deg) }
to { -moz-transform: rotate(305deg) }
}
@-ms-keyframes spin {
from { -ms-transform: rotate(-55deg) }
to { -ms-transform: rotate(305deg) }
}
/* t1 初始形态 */
#t1{
width:66px;
height:66px;
background-image:url(http://img.blog.csdn.net/20130618151427656);
display: block;
position: absolute;
-moz-transform: rotate(-55deg);
-webkit-transform: rotate(-55deg);
-ms-transform: rotate(-55deg);
/* webkit chrome, safari, mobile */
-webkit-animation-name: spin;
-webkit-animation-duration: 5000ms; /* 40 seconds */
-webkit-animation-iteration-count: infinite;
-webkit-animation-timing-function: linear;
/* ff */
-moz-animation-name: spin;
-moz-animation-duration: 5000ms; /* 40 seconds */
-moz-animation-iteration-count: infinite;
-moz-animation-timing-function: linear;
/* ie */
-ms-animation-name: spin;
-ms-animation-duration: 5000ms; /* 40 seconds */
-ms-animation-iteration-count: infinite;
-ms-animation-timing-function: linear;
}
</style>
</head>
<body>
<div id="t1"></div>
<p>css的动画基本上可以说是已经可以独当一面了,呵呵。学习学习</p>
</body>
</html>
- css3.0实现背景旋转的方法
- css3实现背景渐变的方法
- css3只让背景旋转
- css3实现的发光屏幕旋转特效
- 使用css3 实现旋转的立方体
- 用CSS3实现旋转的CD
- CSS3的transform属性实现旋转正方体
- css3的keyframes无限旋转下去实现
- css3实现太极旋转
- CSS3实现头像旋转
- css3实现旋转太极图
- css3实现背景渐变
- JS利用CSS3 transform rotate 实现旋转转盘或背景(大转盘抽奖)
- 360度不停旋转的10片叶子背景---纯css实现旋转背景
- css3的背景坐标
- CSS3的背景
- 用css3制作旋转加载动画的几种方法
- 用css3制作旋转加载动画的几种方法
- HDU 1452 Happy 2004
- 循环与数组问题3
- zookeeper原理 使用场景
- PB webForm中用js实现选中行突出显示
- struts2源码阅读第一天
- css3.0实现背景旋转的方法
- 数据库如何抵抗随机IO:问题、方法与现实
- Jvm GC分代
- C++获取文件大小
- 安装Apache Felix OSGI Framework小记
- Python中的文件和目录操作实现代码
- Android AsyncTask用法 学习了
- ORACLE 变量之DB_BLOCK_CHECKING
- 网上找到的关于c#线程池扩展