CSS3实现图片旋转 transform keyframes
2017-08-19 14:53
246 查看
<img class="Rotation img" src="img/01.png" width="500" height="500"/>
(keyframes相当于设定启动器rotation,并规定开始和结束的动作)
@-webkit-keyframes rotation{
from {-webkit-transform: rotate(0deg);}
to {-webkit-transform: rotate(360deg);}
}
(.Rotation类名定义样式,定义动画的过程)
.Rotation{
animation: rotation 3s linear infinite;
-moz-animation: rotation 3s linear infinite;
-webkit-animation: rotation 3s linear infinite;
-o-animation: rotation 3s linear infinite;
}
animation属性:
rotation--为绑定kerframes
3s--动画速度
linear--动画模式 匀速
infinite--无限进行动画
(keyframes相当于设定启动器rotation,并规定开始和结束的动作)
@-webkit-keyframes rotation{
from {-webkit-transform: rotate(0deg);}
to {-webkit-transform: rotate(360deg);}
}
(.Rotation类名定义样式,定义动画的过程)
.Rotation{
animation: rotation 3s linear infinite;
-moz-animation: rotation 3s linear infinite;
-webkit-animation: rotation 3s linear infinite;
-o-animation: rotation 3s linear infinite;
}
animation属性:
rotation--为绑定kerframes
3s--动画速度
linear--动画模式 匀速
infinite--无限进行动画
相关文章推荐
- CSS3实现图片循环旋转
- CSS3 transform实现图片旋转木马3D浏览效果
- CSS3实现苹果产品图片360度旋转
- 伪类:hover+css3实现图片动态旋转变化
- CSS3实现图片循环旋转
- CSS3实现图片放大旋转
- CSS3实现图片循环旋转
- css3实现图片旋转效果
- 利用CSS3实现图片旋转放大特效
- js+css3实现立体式图片旋转特效
- CSS3 3D效果 实现一个可旋转的正方体
- 30款css3实现的鼠标经过图片显示描述特效
- CSS3 transition实现超酷图片墙动画效果
- vue2实现移动端上传、预览、压缩图片解决拍照旋转问题
- Android开发之图片旋转功能实现方法【基于Matrix】
- Android实现图片缩放与旋转
- 纯CSS3实现8组超炫酷鼠标滑过图片动画
- Android 自定义View实现专辑图片不停旋转
- Qt实现图片旋转
- 利用纯CSS3实现超立体的3D图片侧翻倾斜效果