CSS3 旋转代码备忘
2015-05-07 10:34
447 查看
.Aclose { -webkit-transition-property: all; -webkit-transition-duration: .3s; -moz-transition-property: all; -moz-transition-duration: .3s; transition-property: all; transition-duration: .3s; } .Aclose:hover { -moz-transform: rotate(-180deg); -o-transform: rotate(-180deg); -webkit-transform: rotate(-180deg); transform: rotate(-180deg); } .bg { width: 200px; height: 200px; position: absolute; left: 0; top: 0; background: url(../img/light.png); background-size: 100%; z-index: -1; -webkit-animation-name: scroll; -webkit-animation-duration: 5s; -webkit-animation-timing-function: linear; -webkit-animation-delay: 0; -webkit-animation-iteration-count: infinite; -webkit-animation-direction: normal; -webkit-animation-play-state: running; animation-name: scroll; animation-duration: 5s; animation-timing-function: linear; animation-delay: 0; animation-iteration-count: infinite; animation-direction: normal; animation-play-state: running; }
Aclose,当鼠标移动到上面时旋转。
bg,自动一直旋转
相关文章推荐
- 代码: CSS3动画,简单示例(鼠标移上去后,背景图片旋转)
- 纯CSS3悬停图标旋转导航动画代码
- 纯css3 360旋转代码
- CSS3正方体旋转示例代码
- CSS3 3D旋转动画代码实例
- CSS3 3D旋转动画代码实例
- css3常用代码 圆角 旋转 线性渐变 盒状阴影
- css3 手机简易自适应代码
- IOS代码添加控件,控件移动,放大,缩小,旋转
- View以自身中心旋转的代码解惑
- 推荐 10 个超棒的 CSS3 代码生成工具
- CSS3 3D旋转rotate效果实例介绍
- Android中imageView图片放大缩小及旋转功能示例代码
- 如何通过js获取到CSS3里面transform rotate旋转角度的度数,matrix解析
- 给定两个字符串s1,s2,请编写代码检查s2是否为s1旋转而成
- CSS3技巧巧妙使用:not(:last-of-type)简化你的css代码
- Ajax 请求代码备忘
- CSS3放大旋转
- Pivoting “long” to “wide” Format 将“长格式”旋转为“宽格式” 书中开头缺失的 ldata 变量之实现代码
- [备忘] 如何让一段代码在 tomcat 启动时就被运行?