1. Webkit引擎的CSS3径向渐变语法
        Webkit引擎下的老版本语法:-webkit-gradient([<type>],[<position> || <angle>,]?[<shape> ||<size>,]?<color-stop>,<color-stop>[,<color-stop>]*); //Safari Chrome这两款浏览器支持的版本,浏览器Chrome4-9 和Safari4-5版本支持
        Webkit引擎新式语法:-webkit-radial-gradient([<position> || <angle>,]?[<shape> || <size>,]?<color-stop>,<color-stop>[,<color-stop>]*);//Safari Chrome这两款浏览器支持的版本,Chrome10.0+和Safari5.1+支持

2. Gecko引擎的CSS3的径向渐变语法
        -moz-radial-gradient([<position> || <angle>,]?[<shape> || <size>,]?<color-stop>,<color-stop>[,<color-stop>]*); //Firefox浏览器支持的版本
        Gecko引擎的Firefox浏览器中Firefox3.6+版本支持径向渐变。

3. Presto引擎的CSS3径向渐变语法
        -o-radial-gradient([<position> || <angle>,]?[<shape> || <size>,]?<color-stop>,<color-stop>[,<color-stop>]*);        //Opera浏览器支持的版本
        Presto引擎中的Opear11.6开始支持径向渐变。

4. Trident引擎的CSS3径向渐变语法
        -ms-radial-gradient([<position> || <angle>,]?[<shape> || <size>,]?<color-stop>,<color-stop>[,<color-stop>]*); //IE10以上的版本

5. W3C标准径向渐变语法
        radial-gradient([[<shape> || <size>] [at <position>]?,| at <position>,]?<color-stop>[,<color-stop>]+); //标准径向渐变

.linear{

width:100%;

height:600px;

FILTER: progid:DXImageTransform.Microsoft.Gradient(gradientType=0,startColorStr=#b8c4cb,endColorStr=red);  /*IE 6 7 8*/

background: -ms-linear-gradient(top, #fff,  #0000ff);        /* IE 10 */

background: -moz-linear-gradient(top,#b8c4cb,#f6f6f8);/*火狐*/

background: -webkit-gradient(linear, 0% 0%, 0% 100%,from(#b8c4cb), to(#f6f6f8));/*谷歌*/

background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#fff), to(#0000ff));      /* Safari 4-5, Chrome 1-9*/

background: -webkit-linear-gradient(top, #fff, #0000ff);   /*Safari5.1 Chrome 10+*/

background: -o-linear-gradient(top, #fff, #0000ff);  /*Opera 11.10+*/

}

流星效果

safari和ie9以下无效

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>meteor</title>
<style>
*{
padding:0;
margin:0;
}
body{
background-color:#000;
overflow:hidden;
}
.author{
color:#fff;
font:18px/1.5 "微软雅黑";
animation:change 4s infinite;
}
.star{
width:4px;
height:4px;
background-color:#fff;
display:block;
position:absolute;
top:110px;
right:800px;
border-radius:4px;
animation:star 1s infinite linear;
opacity:0;
}
.star:after{
position:relative;
display:block;
top:-49px;
left:23px;
border:2px solid #fff;
border-width:0 0 0 1px;
width:100px;
height:100px;
content:"";
transform:rotate(45deg);
}
.blue{
background-color:lightskyblue;
top:60px;
right:600px;
animation-delay:0.25s;
}
.blue:after{
width:200px;
height:200px;
top:-99px;
left:43px;
border:2px solid lightskyblue;
border-width:0 0 0 1px;
}
.pink{
background-color:lightpink;
top:160px;
right:500px;
animation:starPink 1s infinite linear;
animation-delay:0.5s;
}
.pink:after{
width:133px;
height:133px;
top:-65px;
left:29px;
border:2px solid lightpink;
border-width:0 0 0 1px;
}
.yellow{
background-color:yellow;
top:127px;
right:261px;
animation:starYellow 1s infinite linear;
animation-delay:0.75s;
}
.yellow:after{
width:209px;
height:164px;
top:-65px;
left:29px;
border:2px solid yellow;
border-width:0 0 0 1px;
}
@keyframes change{
0%{
color:#fff;
}
25%{
color:lightskyblue;
}
50%{
color:lightpink;
}
75%{
color:yellow;
}
}
@keyframes star{
0%{
opacity:0;
transform:scale(0) translate(0,0);
}
50%{
opacity:1;
transform:scale(1) translate(-200px,200px);
}
100%{
opacity:0;
transform:scale(1) translate(-400px,400px);
}
}
@keyframes starPink{
0%{
opacity:0;
transform:scale(0) translate(0,0);
}
50%{
opacity:1;
transform:scale(1) translate(-300px,300px);
}
100%{
opacity:0;
transform:scale(1) translate(-600px,600px);
}
}
@keyframes starYellow{
0%{
opacity:0;
transform:scale(0) translate(0,0);
}
50%{
opacity:1;
transform:scale(1) translate(-300px,300px);
}
100%{
opacity:0;
transform:scale(1) translate(-600px,600px);
}
}
</style>
</head>
<body>
<span class="author">by Scott</span>
<span class="star"></span>
<span class="star blue"></span>
<span class="star pink"></span>
<span class="star yellow"></span>
</body>
</html>

最新文章

  1. Zxing库
  2. 关于问题ld:library not found for -lXXX的错误
  3. Sql Server中不常用的表运算符之PIVOT
  4. SoapUI命令行方式运行
  5. .Net (MVC) 随机生成验证码
  6. 《HTML5与CSS3基础教程》学习笔记 ——One Day
  7. ArcSDE for Microsoft SQL Server Post Installation图解(转)
  8. Linux用户行为日志审计
  9. [crypto][ipsec] 简述ESP协议的sequence number机制
  10. LoadRunner简单介绍----性能自动化测试工具
  11. echarts 实时获取数据
  12. java正则表达式appendReplacement和appendTail方法
  13. 在Struts.xml中的result元素指的是:指定动作类的动作方法执行完后的结果视图.
  14. 用nodejs搭建类似于C++的服务器后台.类似网易pomelo
  15. 【转】MySQL理解索引、添加索引的原则
  16. 【1】【JUC】JDK1.8源码分析之ReentrantLock
  17. luogu P2516 [HAOI2010]最长公共子序列
  18. 用python进行wifi密码生成
  19. ping一个网段的cmd程序
  20. 存储过程打印超过8000的VARCHAR字符的问题

热门文章

  1. charles抓https设置
  2. PAT-树的同构
  3. Fiddler4抓包工具使用教程
  4. js中浏览器兼容startsWith 、endsWith 函数
  5. JavaScript 三要素
  6. 3.2、使用Flask-Bootstrap集成Twitter Bootstrap
  7. python初学者学习笔记
  8. 利用LoadRunner来进行文件下载的测试
  9. web.xml 中context-param元素
  10. the rendering library is more recent than your version of android studio