SCC3实现文字背景动态滑动
2016-02-18 13:41
218 查看
<!DOCTYPE html> <html> <head> <style> p{ width:50%; margin:100px auto; line-height:50px; font-size:50px; text-align:center; -webkit-background-clip: text; /*按文字裁剪*/ -webkit-text-fill-color: transparent; /*文字的颜色使用背景色*/ background-color:#19385c; /*设置一个背景色*/ background-image: -webkit-linear-gradient(-45deg, rgba(0, 0, 0, 0.6) 30%, #aff0ff 50%, rgba(0, 0, 0, 0.6) 70%); /*设置渐变的背景,按对角线渐变*/ background-blend-mode: hard-light; /*设置背景为混合模式下的强光模式*/ background-size: 200%; -webkit-animation: shine 4s infinite; /*给背景添加动画改变位置*/ } @-webkit-keyframes shine { from {background-position: 100%;} to {background-position: 0;} } </style> </head> <body><p>> Slide To Unlock</p></body> </html>
本文出自:http://www.wufangbo.com/css-jie-shuo-hua-dong/
相关文章推荐
- Linux常用命令之六:关机
- Java并发编程:volatile关键字解析(转)
- rabbitMQ WINDOWS 安装 入门
- GDB watch if var !=value
- 传奇创世h5开发定制案例--《名师天团喊你来上课》
- 愛情是欲-並不神聖
- 算法之美_源代码发布(7)
- GitHub学习笔记
- Badboy中创建Suite, test, step和Template
- 《梦断代码》阅读笔记1
- C++中 #ifdef 和#endif的作用
- 实现一些简单的单链表
- 51nod 1487:占领资源 很好玩很痛苦
- xampp php环境搭建注意事项
- 基于Struts2的验证码程序
- jenkins中subversion由于服务器时间不一致导致无法更新到最新svn的解决方法
- POJ 1860 Currency Exchange(bellman变形)
- Java对象的强、软、弱和虚引用原理+结合ReferenceQueue对象构造Java对象的高速缓存器
- ubuntu利用live-cd修复grub
- WindowManager service