css3动画-ease先快后慢
2015-12-24 11:06
706 查看
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>无标题文档</title> <style> .trans_box { padding: 20px; background-color: #f0f3f9; *zoom:1; } .trans_list { width: 10%; height: 64px; margin:10px 0; background-color:#486AAA; color:#fff; text-align:center; } .ease { -webkit-transition: all 4s ease; -moz-transition: all 4s ease; -o-transition: all 4s ease; transition: all 4s ease; } .ease_in { -webkit-transition: all 4s ease-in; -moz-transition: all 4s ease-in; -o-transition: all 4s ease-in; transition: all 4s ease-in; } .ease_out { -webkit-transition: all 4s ease-out; -moz-transition: all 4s ease-out; -o-transition: all 4s ease-out; transition: all 4s ease-out; } .ease_in_out { -webkit-transition: all 4s ease-in-out; -moz-transition: all 4s ease-in-out; -o-transition: all 4s ease-in-out; transition: all 4s ease-in-out; } .linear { -webkit-transition: all 4s linear; -moz-transition: all 4s linear; -o-transition: all 4s linear; transition: all 4s linear; } .trans_box:hover .trans_list, .trans_box_hover .trans_list { margin-left:89%; background-color:#beceeb; color:#333; -webkit-border-radius:25px; -moz-border-radius:25px; -o-border-radius:25px; border-radius:25px; -webkit-transform: rotate(360deg); -moz-transform: rotate(360deg); -o-transform: rotate(360deg); transform: rotate(360deg); } </style> </head> <body> <div id="transBox" class="trans_box"> <div class="trans_list ease">ease</div> <div class="trans_list ease_in">ease-in</div> <div class="trans_list ease_out">ease-out</div> <div class="trans_list ease_in_out">ease-in-out</div> <div class="trans_list linear">linear</div> </div> </body> </html>
相关文章推荐
- 项目中弹出页面的显示层次问题 CSS中z-index属性
- css3 实现的两个3d效果
- Photoshop利用图层样式绘制电影中逼真的3D机器人EVA
- css3-圆角矩形的效果
- File input 的样式和文字的更改方法__适用于Firefox、IE等浏览器
- css实现子层在父层中水平垂直居中
- CSS图片在DIV中水平垂直居中
- CSS样式表 超链接编辑
- CSS样式表 超链接编辑
- CSS 关键的基础知识
- /normalize.css 比cssreset更实用
- CSS样式表
- 解决浏览器兼容性问题CSS(一)
- 用CSS box-shadow画画
- CSS之照片翻转
- CSS样式表——超链接样式
- CSS3秘笈:第十三章
- HTML--CSS样式表的基本概念
- 作品第一课----鼠标移入/移除改变样式
- 作品第一课----改变DIV样式属性