CSS3实现图片循环旋转
2024-08-26 04:08:17
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>图片循环旋转</title>
<style> @-webkit-keyframes fadeIn{
from {opacity: 0;}
to {opacity: 1;}
}
.FadeIn{
opacity: 1;
-webkit-animation: fadeIn 3s;
}
@-webkit-keyframes rotation{
from {-webkit-transform: rotate(0deg);}
to {-webkit-transform: rotate(360deg);}
}
.Rotation{
-webkit-transform: rotate(360deg);
animation: rotation 3s linear infinite;
-moz-animation: rotation 3s linear infinite;
-webkit-animation: rotation 3s linear infinite;
-o-animation: rotation 3s linear infinite;
}
img{
border-radius:100%;
}
</style>
</head>
<body> <div class="ta_c FadeIn">
<img class="Rotation img" src="http://images2015.cnblogs.com/blog/546882/201707/546882-20170718230517411-1727231843.png" width="500" height="500"/>
</div> </body>
</html>
最新文章
- Oracle查询数据库中的所有表
- iOS多线程学习及总结
- java.sql.SQLException: Incorrect string value:
- [PHP] - Laravel - 修改laravel_session的cookie名称
- wampserver You don&#39;t have permission to access / on this server. 解决 方法(转,正好碰到这样的事情了就转下来)
- Lex和Yacc入门
- vm克隆虚拟机网络配置
- Axis2的下载和安装
- ubuntun pptpd
- linux shell 命令学习(3) split - split a file into pieces
- MapInfo格式转arggis格式
- angularJS快速入门
- Visual Studio 启动加速
- 解决angular 与django的冲突
- Java中常见的几种类型转换
- MyBaits 错误分析
- ionic,Angular 开发实践
- angular或者js如何确定选中ul中的哪几个li
- python实现散列表的直接寻址法
- 英语知识积累-D01-body+animal