CSS动画硬件加速
2016-07-05 14:26
369 查看
http://zencode.in/14.CSS%E5%8A%A8%E7%94%BB%E7%9A%84%E6%80%A7%E8%83%BD%E4%BC%98%E5%8C%96.html
http://www.html5rocks.com/zh/tutorials/speed/layers/
http://www.html5rocks.com/zh/tutorials/speed/layers/
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> <title></title> <style type="text/css"> .test-wrap{ font-family: Arial,"Lucida Grande",Verdana,"Microsoft Yahei",STXihei,Sans-serif; } .test-words{ font-size: 20px; font-weight: bold; } .test-item{ float: right; width:100px; height:100px; border-radius: 50%; border-color: transparent; box-shadow: 1px 1px 1px #999999; -webkit-box-shadow: 1px 1px 1px #999999; animation: loading 690ms infinite linear; -webkit-animation: loading 690ms infinite linear; } /*@keyframes loading { 0%{transform: translate(0,0);} 100%{ transform: translate(-200px,0); } }*/ @keyframes loading { 0%{transform: translate3d(0,0,0);} 100%{ transform: translate3d(-200px,0,0); } } </style> </head> <body> <div class="test-wrap"> <div class="test-words">我是测试抖不抖的文字</div> <div class="test-item"></div> </div> </body> </html>
相关文章推荐
- CSS设置文字大小
- CSS的注释与继承
- css-float,clear
- CSS选择器的声明与嵌套
- transform知识【学习总结】
- CSS overflow 属性
- CSS基础
- CSS3阴影 box-shadow的使用和技巧总结
- 修改 文件上传 默认样式
- css3 box-sizing属性
- css 一些灵动性的小方法
- CSS实现垂直居中水平居中的绝对定位居中技术
- CSS深入理解vertical-align和line-height的基友关系
- CSS-行内框、行框、行高
- CSS中设置DIV垂直居中的N种方法 兼容IE浏览器
- web iphone css 兼容性
- CSS3 transition 属性
- CSS滤镜(Filters)
- CSS3 Flexbox布局
- css 设置字体