apng制作工具:http://isparta.github.io/how.html
apng制作文章:http://isux.tencent.com/introduction-of-apng.html GIF 和 Apng ,apng-canvas
Css3 模拟支付宝AA收款动画 [摘抄]
demo地址:http://www.imengwang.net/css3d/css3-wave.html
<html>
<head>
<title></title>
<style type="text/css">
.circle{width:200px;height:200px;position:absolute;top:%;left:%;margin:-100px -100px;}
.circle1, .circle2, .circle3, .circle4, .circle5, .circle6, .center{
position:absolute;
left:%;
top:%;
margin:-30px -30px;
width:60px;
height:60px;
border-radius:30px;
background-color:#;
}
.center{
position:absolute;
left:%;
top:%;
margin:-35px -35px;
width:70px;
height:70px;
border-radius:35px;
background:#;
text-align:center;
line-height:70px;
color:#EAEAEA;
font-size:16px;
font-family:"\5FAE\8F6F\96C5\9ED1";
}
.circle1{
-webkit-animation:circle 3s linear infinite;
animation:circle 3s linear infinite;
}
.circle2{
-webkit-animation:circle 3s linear .8s infinite;
animation:circle 3s linear .8s infinite;
}
.circle3{
-webkit-animation:circle 3s linear .6s infinite;
animation:circle 3s linear .6s infinite;
}
@-webkit-keyframes circle{
from{
opacity:;
-webkit-transform:scale();
}
to{
opacity:;
-webkit-transform:scale();
}
}
</style>
</head>
<body>
<div class="circle">
<div class="circle1"> </div>
<div class="circle2"> </div>
<div class="circle3"> </div>
<div class="center">AA</div>
</div>
</body>
</html>
模糊,毛玻璃效果 (Css3 Filter):
地址:http://www.w3cplus.com/css3/ten-effects-with-css3-filter
#player {-webkit-filter: blur(3px);-moz-filter: blur(3px);-ms-filter: blur(3px);-o-filter: blur(3px);}
图片自动360旋转效果:
.img { animation: 10s linear 0s normal none infinite rotate; animation-play-state: running; }
img:hover
{
transform: rotate(360deg);
transition: all 0.5s ease 0s;
}
CSS3倒计时效果:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="author" content="" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<title> new document </title>
<style>
div{position:absolute;width:200px;height:200px;left:;top:;right:;bottom:;margin:auto;border-radius:%;background-color:#CCC;}
div:before,
div:after{position:absolute;content:"";width:%;height:%;top:;left:;background-color:#CCC;border-radius:% %/% %;z-index:;transform-origin:% %;-webkit-transform-origin:% %;-moz-transform-origin:% %;-o-transform-origin:% %;}
div.half,
div:before{background-color:gold;}
div{animation:run 10s steps(,end);-webkit-animation:run 10s steps(,end);-moz-animation:run 10s steps(,end);-o-animation:run 10s steps(,end);}
div:before{animation:run1 10s linear;-webkit-animation:run1 10s linear;-moz-animation:run1 10s linear;-o-animation:run1 10s linear;}
div span{position:absolute;width:%;height:22px;left:;top:90px;font-size:20px;font-weight:bold;line-height:22px;text-align:center;z-index:;}
@keyframes run{
%,
%{background-color:gold;}
}
@keyframes run1{
%{z-index:;transform:rotate(360deg);}
} @-webkit-keyframes run{
%,
%{background-color:gold;}
}
@-webkit-keyframes run1{
%{z-index:;-webkit-transform:rotate(360deg);}
}
</style>
</head>
<body>
<div>
<span></span>
</div>
<script>
var div=document.querySelector("div"),span=div.querySelector("span"),step=,timer,
aniStart=function(e){
if(e.animationName=="run")
{
(function(){
span.innerHTML=step++;
timer=setTimeout(arguments.callee,);
})();
}
},aniEnd=function(e){
if(e.animationName=="run")
{
span.innerHTML=;
clearTimeout(timer);
step=;
}
};
div.addEventListener("animationstart",aniStart,false);
div.addEventListener("animationend",aniEnd,false);
div.addEventListener("webkitAnimationStart",aniStart,false);
div.addEventListener("webkitAnimationEnd",aniEnd,false);
div.addEventListener("oAnimationEnd",aniEnd,false);
div.addEventListener("oAnimationEnd",aniEnd,false);
</script>
</body>
</html>
闪闪的效果:
.blood {
position: absolute;
height: 300px;
width: 15px;
right: 10px;
top: 20px;
border-radius: 5px;
overflow: hidden;
background: -webkit-gradient(linear, 0% 100%, 0% 0%, from(red), color-stop(0.5, yellow), to(green));
box-shadow: 0 0 4px #2AC3FF;
-webkit-animation: glow2 1s infinite alternate ease-in-out;
} <div class="blood bloodA">
<div style="bottom: 0px; "></div>
</div>
文字描边效果:
<html>
<head>
<style type="text/css">
.text-shadow {
color: #FFE339;
font-family: "微软雅黑";
font-size: 18px;
text-shadow: 1px 0 0 #000000, -1px 0 0 #000000, 0 1px 0 #000000, 0 -1px 0 #000000;
} </style>
</head>
<body>
<div class="text-shadow"> 精彩游戏</div>
</body>
</html>
Canvas 立方体 Cube 效果:
demo 地址:http://www.imengwang.net/css3d/css3-cube.html
<!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" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<style>
body{margin: ;padding:;}
#cas{margin:100px auto;display: block;}
</style>
<title>CUBE</title>
</head>
<body>
<canvas id="cas" width="" height="">您的浏览器不支持canvas</canvas>
<script>
var canvas = document.getElementById("cas");
var ctx = canvas.getContext("2d");
var fallLength = , centerX = canvas.width/ , centerY = canvas.height/; Array.prototype.foreach = function(callback){
for(var i=;i<this.length;i++){
callback.apply(this[i] , [i])
}
} var Vector = function(x,y,z){
this.x = x;
this.y = y;
this.z = z;
this._get2d = function(){
var scale = fallLength/(fallLength+this.z);
var x = centerX + this.x*scale;
var y = centerY + this.y*scale;
return {x:x , y:y};
}
} var Cube = function(length){
this.length = length;
this.faces = [];
}
Cube.prototype = {
_initVector:function(){
this.vectors = [];
this.vectors.push(new Vector(-this.length/ , -this.length/ , this.length/)); //
this.vectors.push(new Vector(-this.length/ , this.length/ , this.length/)); //
this.vectors.push(new Vector(this.length/ , -this.length/ , this.length/)); //
this.vectors.push(new Vector(this.length/ , this.length/ , this.length/)); // this.vectors.push(new Vector(this.length/ , -this.length/ , -this.length/)); //
this.vectors.push(new Vector(this.length/ , this.length/ , -this.length/)); //
this.vectors.push(new Vector(-this.length/ , -this.length/ , -this.length/)); //
this.vectors.push(new Vector(-this.length/ , this.length/ , -this.length/)); // },
_draw:function(){
this.faces[] = new Face(this.vectors[] , this.vectors[] , this.vectors[] , this.vectors[] , "#6c6");
this.faces[] = new Face(this.vectors[] , this.vectors[] , this.vectors[] , this.vectors[] , "#6cc");
this.faces[] = new Face(this.vectors[] , this.vectors[] , this.vectors[] , this.vectors[] , "#cc6");
this.faces[] = new Face(this.vectors[] , this.vectors[] , this.vectors[] , this.vectors[] , "#c6c");
this.faces[] = new Face(this.vectors[] , this.vectors[] , this.vectors[] , this.vectors[] , "#666");
this.faces[] = new Face(this.vectors[] , this.vectors[] , this.vectors[] , this.vectors[] , "#ccc"); this.faces.sort(function(a , b){
return b.zIndex - a.zIndex;
});
this.faces.foreach(function(){
this.draw();
})
}
} var Face = function(vector1,vector2,vector3,vector4,color){
this.v1 = vector1;
this.v2 = vector2;
this.v3 = vector3;
this.v4 = vector4;
this.color = color;
this.zIndex = this.v1.z + this.v2.z + this.v3.z + this.v4.z;
this.draw = function(){
ctx.save();
ctx.beginPath();
ctx.moveTo(this.v1._get2d().x , this.v1._get2d().y);
ctx.lineTo(this.v2._get2d().x , this.v2._get2d().y);
ctx.lineTo(this.v3._get2d().x , this.v3._get2d().y);
ctx.lineTo(this.v4._get2d().x , this.v4._get2d().y);
ctx.closePath();
// ctx.fillStyle = "rgba("+parseInt(Math.random()*255)+","+parseInt(Math.random()*255)+","+parseInt(Math.random()*255)+",0.2)";
ctx.fillStyle = this.color;
ctx.fill();
}
} var angleX = 0.05;
var angleY = 0.05; if("addEventListener" in window){
/*window.addEventListener("mousemove" , function(event){
var x = event.clientX - canvas.offsetLeft - centerX;
var y = event.clientY - canvas.offsetTop - centerY;
angleY = x*0.0001;
angleX = y*0.0001;
});*/ /****************/
var startx=startY=endx=endY=deltax=deltay=;
/********************************/
canvas.addEventListener('touchstart',function(event){
//阻止网页默认动作(即网页滚动)
event.preventDefault(); startx=event.touches[].pageX;
startY=event.touches[].pageY;
//alert("startx:"+startx+",startY:"+startY);
},false); canvas.addEventListener("touchmove",function(event){
//阻止网页默认动作(即网页滚动)
event.preventDefault();
endx = event.targetTouches[].pageX;
endY = event.targetTouches[].pageY;
},false); canvas.addEventListener('touchend',function(event){
//alert("endx:"+endx+",endY:"+endY);
//阻止网页默认动作(即网页滚动)
event.preventDefault();
var x = endx - canvas.offsetLeft - centerX;
var y = endY - canvas.offsetTop - centerY;
angleY = x*0.00001;
angleX = y*0.00001;
animate();
},false); }
else {
/*window.attachEvent("onmousemove" , function(event){
var x = event.clientX - canvas.offsetLeft - centerX;
var y = event.clientY - canvas.offsetTop - centerY;
angleY = x*0.0001;
angleX = y*0.0001;
});*/ /****************/
var startx=startY=endx=endY=deltax=deltay=;
/********************************/
canvas.attachEvent('touchstart',function(event){
//阻止网页默认动作(即网页滚动)
event.preventDefault(); startx=event.touches[].pageX;
startY=event.touches[].pageY;
//alert("startx:"+startx+",startY:"+startY);
},false); canvas.attachEvent("touchmove",function(event){
//阻止网页默认动作(即网页滚动)
event.preventDefault();
endx = event.targetTouches[].pageX;
endY = event.targetTouches[].pageY;
},false); canvas.attachEvent('touchend',function(event){
//alert("endx:"+endx+",endY:"+endY);
//阻止网页默认动作(即网页滚动)
event.preventDefault();
var x = endx - canvas.offsetLeft - centerX;
var y = endY - canvas.offsetTop - centerY;
angleY = x*0.00001;
angleX = y*0.00001;
animate();
},false);
} function rotateX(vectors){
var cos = Math.cos(angleX);
var sin = Math.sin(angleX);
vectors.foreach(function(){
var y1 = this.y * cos - this.z * sin;
var z1 = this.z * cos + this.y * sin;
this.y = y1;
this.z = z1;
});
} function rotateY(vectors){
var cos = Math.cos(angleY);
var sin = Math.sin(angleY);
vectors.foreach(function(){
var x1 = this.x * cos - this.z * sin;
var z1 = this.z * cos + this.x * sin;
this.x = x1;
this.z = z1;
})
} cube = new Cube();
cube._initVector();
function initAnimate(){
cube._draw(); animate();
} function animate(){
ctx.clearRect(,,canvas.width,canvas.height) rotateY(cube.vectors);
rotateX(cube.vectors);
cube._draw();
requestAnimationFrame(animate);
} initAnimate();
</script>
</body>
</html>
CSS3 制作Drop-Shadows效果:
地址:http://www.cnblogs.com/Li-Cheng/p/3853227.html
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhYAAADfCAIAAAAlXQ3RAAAUwklEQVR4nO3de3Ab9YHAcf3lDHAtFMowF9oL0OtRyIMbaC8ww11Jb5i5OxIeocCRFq4tXFuud0Aoj0CgQAuZocfwKqUEE145aBOgbkJKYhI/8nJMol2tHquXJVmSbcmSJfkVO08798d616u3/IssJ83381cSWfLqt9J+s7/VrizHAAAQYpnpBQAAnKxICABAEAkBAAgiIQAAQSQEACCIhAAABE05IVYAwF8cEgIAEERCAACCSAgAQBAJAQAIIiEAAEEkBAAgiIQAAASREACAIBICABBEQgAAgkgIAEAQCQEACCIhAABBJAQAIIiEAAAEkRAAgCASAgAQREIAAIJICABAEAkBAAgiIQAAQSQEACCIhAAABJEQAIAgEgIAEERCAACCSAgAQBAJAQAIIiEAAEEkBAAgiIQAAASREACAIBICABBEQgAAgkgIAEAQCQEACCIhAABBJAQAIIiEAAAEkRAAgCASAgAQREIAAIJICABAEAkBAAgiIQAAQSQEACCIhAAABJEQAIAgEgIAEERCAACCSAgAQBAJAQAIIiEAAEEkBAAgiIQAAASREACAIBICABBEQgAAgkgIAEAQCQEACCIhAABBJAQAIIiEAAAEkRAAgCASAgAQREIAAIJICABAEAkBAAgiIQAAQSQEACCIhAAABJEQAIAgEgIAEERCAACCSAgAQBAJAQAIIiEAAEEkBAAgiIQAAASREACAIBICABBEQgAAgkgIAEAQCQEACCIhAABBJAQAIIiEoNYkSXI0LP+GRXPxfR/KpX9YUV663lLEkpclSSpx9z0tG9799X13XLNg9uyzT9PvdNrZsy9bdM/KNzfslnN/tSRJDcsv1hftgQ/zfiCfLH/4wMXG8rwiZ98l6wHLuPj+jxXj6WSPksViqfvW45vKLowkSXb75HBd96Kt7F2sVqu1rXnjO88tv+Oay8zDZDnt7Nl/u/Df7nms/uPW9vLjgFMTCUGtKYoSanxk3sR26tLlDc4SPyzLss/32i3Ftro3rVYUpeAd93z6xqPXff20YnfUtsrnLXps/V7zRl9RlM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CKxi1Z6wIbb0MDQ1pux3af0y0eBw6dIh+nOLGTcZMjpocMTlc3KEiCoaH9lRyyCe/PYZgMKhNVofD4a6urp6enng8nkwmzXPUWj+O/0C6RiQhxwpVJD8kxsrejxOStna0NZUTD/qBY9khyc9Jwa4UdKQ42pPfntKHfPLbk0Obr9YOcCaTyVQqlclkBgYGtEMgVZ+jFkzIsZJzpuZp0xIrGDPFvF60NaWttZx40A8Y8nNSNi3FlE0O7clpjzk/+e3JYcxaa9PU2pSDMX9V9WOc4gk5ljdnmj9tWnZlYwblrCZt3eXEg34gR+mWTMmUwnMqtycnPwXbYzCmrI2Zam3n44A+f1XdOYbjSsix4nOmU13lmCn5a828To/z5QEYaE+12pOfn3zmmeoDJY9xznBCSrw+prqaMVPy1121XhXA8TvZ2yOQH+H2GIc2jSlrY6Y6Z6ahWm/2qiXErIqrHDUzHa8EYAZV8d1xsrTHkDNfbY7HWFWPcU5LQgDg5FXF9kw1P9Vqj5GNgnse1erHMRICANUyg+0pLeeRq/iUSQgAzLDqtqeY6VhyEgIAJ6sZyYbZ/wPeanpEDH016wAAAABJRU5ErkJggg==" alt="" />
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<style>
*{ margin:; padding:;}
.box {
width: 500px;
height: 200px;
position: relative;
background: #ccc;
margin:100px auto;
font:35px/200px "微软雅黑";
text-align:center;
text-shadow: 1px 1px #fff;
} .box:before,
.box:after {
content: "";
position: absolute;
z-index: -;
bottom: 15px;
left: 10px;
width: %;
max-width: 150px;
height: %;
/*添加阴影效果*/
-webkit-box-shadow: 15px 10px rgba(,,,0.8);
-moz-box-shadow: 15px 10px rgba(,,,0.8);
box-shadow: 15px 10px rgba(,,,0.8);
/*添加transform属性*/
-webkit-transform: rotate(-3deg);
-moz-transform: rotate(-3deg);
-o-transform: rotate(-3deg);
transform: rotate(-3deg);
} .box:after {
right:10px;
left: auto;
-webkit-transform:rotate(3deg);
-moz-transform:rotate(3deg);
-o-transform:rotate(3deg);
transform:rotate(3deg);
} </style>
</head> <body>
<div class="box">LICHENG</div>
</body>
</html>
text-fill-color 文字遮罩动画效果实例:
地址: http://www.zhangxinxu.com/study/201006/text-fill-color-mask-text-demo.html
文字折叠,翻转的效果!
demo: http://xg.qq.com/xg 腾讯云推送效果
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="zh-cn" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<meta charset="utf-8">
<style type="text/css">
body {
color: #333333;
font-family: hiragino sans gb, microsoft yahei, arial, sans-sarif;
}
.subtitle {
display: block;
float: right;
font-size: 47px;
line-height: 18px;
margin: 20px 200px 0 0;
color: black;
} .subtitle:hover {
color: #5BAA2B;
text-decoration: none;
transition: color 0.25s linear 0s;
} /*******滚动显示字幕的效果************/
.subtitle {
opacity: 0;
-webkit-filter: blur(10px);
-webkit-transform: scale(0.6, 0.6) rotateX(180deg);
-moz-transform: scale(0.8, 0.6) rotateX(180deg);
-ms-transform: scale(0.6, 0.6) rotateX(180deg);
transform: scale(0.6, 0.6) rotateX(180deg);
transition: all 0s ease 0s;
} .current {
visibility: visible;
opacity: 1;
-webkit-filter: blur(0);
-webkit-transform: scale(1, 1) rotateX(0deg);
-moz-transform: scale(1, 1) rotateX(0deg);
-ms-transform: scale(1, 1) rotateX(0deg);
transform: scale(1, 1) rotateX(0deg);
transition: all 1.5s ease 0s;
} </style>
<script src="http://common.cnblogs.com/script/jquery.js" type="text/javascript"></script>
<script type="text/javascript">
$(function(){
var timer=setInterval(function(){
$(".subtitle").addClass("current");
clearInterval(timer);
},1000);
});
</script>
</head>
<body>
<i class="fa fa-paper-plane"></i>
<span class="subtitle">Hello Wolrd Cordova!</span>
</body>
</html>
Css3 按钮效果:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZIAAACOCAIAAACUgxn5AAAHh0lEQVR4nO3a309b5x3H8f4jS5MM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gU8vl8Nptd01Q2m83n84VCoVgs7uzseJ5XKpXa/QaAyJiSrXK5XCmX67qO49i2vak127Ydx3Fdt9Kscrnc7jcARMaUbH21W64wDIMg8H3f05rv+0EQhGFIs6Afg7IFQA9kC4AwZAuAMGQLgDBkC4AwZAuAMGQLgDBkC4AwZAuAMGQLgDBkC4AwZAuAMGQLgDBkC4AwZAuAMGQLgDBkC4AwZAuAMGQLgDBkC4AwZAuAMGQLgDBkC4AwZAuAMGQLgDBkC4AwZAuAMGQLgDBkC4AwZAuAMGQLgDBkC4AwZAuAMGQLgDBkC4AwZAuAMGQLgDBkC4AwZAuAMGQLgDBkC4AwZAuAMGQLgDBkC4Aw/wPEL5nmLP21vwAAAABJRU5ErkJggg==" alt="" />
<style type="text/css">
body{margin:;padding:;}
.login-submit {
margin:100px; background: -moz-linear-gradient(center top , #89E92C, #5FBA1D) repeat scroll transparent;
border: none;
border-radius: 2px 2px 2px 2px;
box-shadow: 1px 1px 2px #;
color: #;
cursor: pointer;
font-size: 20px;
padding: 8px 20px;
width: 40px;
}
</style>
<div class="login-submit">开始</div>
飞的效果
<html>
<head>
<title></title>
<meta charset="utf-8">
<style type="text/css"> .fa-paper-plane {
background:url("http://www.imengwang.net/images/logo.png");
width:49px;
height:35px;
position: absolute;
left: 120px;
top: 20px;
color: #3498db;
text-shadow: 20px 2px rgba(,,,.);
-webkit-animation: page-index-banner-plane 5s ease-out infinite;
animation: page-index-banner-plane 5s ease-out infinite;
}
.fa {
display: inline-block;
font-family: FontAwesome;
font-style: normal;
font-weight: ;
line-height: ;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
} @keyframes page-index-banner-plane {
% {
opacity: ;
transform: translate3d(-120px, 100px, 0px);
}
% {
opacity: ;
transform: translate3d(0px, 0px, 0px);
}
% {
opacity: ;
transform: translate3d(0px, -4px, 0px);
}
% {
opacity: ;
transform: translate3d(0px, 0px, 0px);
}
% {
opacity: ;
transform: translate3d(0px, 4px, 0px);
}
% {
opacity: ;
transform: translate3d(0px, 0px, 0px);
}
% {
opacity: ;
transform: translate3d(50px, -50px, 0px);
}
% {
opacity: ;
-moz-transform: translate3d(50px, -50px, 0px);
}
}
@-webkit-keyframes page-index-banner-plane {
% {
opacity: ;
-webkit-transform: translate3d(-120px, 100px, 0px);
}
% {
opacity: ;
-webkit-transform: translate3d(0px, 0px, 0px);
}
% {
opacity: ;
-webkit-transform: translate3d(0px, -4px, 0px);
}
% {
opacity: ;
-webkit-transform: translate3d(0px, 0px, 0px);
}
% {
opacity: ;
-webkit-transform: translate3d(0px, 4px, 0px);
}
% {
opacity: ;
-webkit-transform: translate3d(0px, 0px, 0px);
}
% {
opacity: ;
-webkit-transform: translate3d(50px, -50px, 0px);
}
% {
opacity: ;
-webkit-transform: translate3d(50px, -50px, 0px);
}
} @-moz-keyframes page-index-banner-plane {
% {
opacity: ;
-moz-transform: translate3d(-120px, 100px, 0px);
}
% {
opacity: ;
-moz-transform: translate3d(0px, 0px, 0px);
}
% {
opacity: ;
-moz-transform: translate3d(0px, -4px, 0px);
}
% {
opacity: ;
-moz-transform: translate3d(0px, 0px, 0px);
}
% {
opacity: ;
-moz-transform: translate3d(0px, 4px, 0px);
}
% {
opacity: ;
-moz-transform: translate3d(0px, 0px, 0px);
}
% {
opacity: ;
-moz-transform: translate3d(50px, -50px, 0px);
}
% {
opacity: ;
-moz-transform: translate3d(50px, -50px, 0px);
}
}
</style>
</head>
<body>
<i class="fa fa-paper-plane"></i>
</body>
</html>
Css3
body{
background-color:#;
font-size:12px;
}
.texts {
position:absolute;
-webkit-animation:demo-an .5s ease-out infinite;
border-radius:.4em;
color:#eee;
font:bold 4em/normal \5FAE\8F6F\96C5\9ED1,tahoma,arial,\5b8b\4f53,sans-serif;
text-align:center;
margin-left:48px;
width:12em;
zoom:
}
.demo{
-webkit-animation:demo-an .5s ease-out infinite;
border-radius:.4em;
color:#fff;
font:bold 4em/normal \5FAE\8F6F\96C5\9ED1,tahoma,arial,\5b8b\4f53,sans-serif;
margin:1em;
-webkit-mask:-webkit-linear-gradient(left,rgba(,,,) %,rgba(,,,) %,rgba(,,,) %) -500px no-repeat content;
text-align:center;
text-shadow:1px 1px #ccc;
width:12em;
}
@-webkit-keyframes demo-an{
to{ -webkit-mask-position:500px ; }
} <div class="texts">测试效果</div>
<div class="demo">测试效果</div>
2:
body{
background-color:#;
font-size:12px;
} .demo{
-webkit-animation:demo-an .5s ease-out infinite;
border-radius:.4em;
color:#fff;
font:bold 4em/normal \5FAE\8F6F\96C5\9ED1,tahoma,arial,\5b8b\4f53,sans-serif;
margin:1em;
-webkit-mask:-webkit-linear-gradient(left,rgba(,,,) %,rgba(,,,) %,rgba(,,,) %) -500px no-repeat content;
text-align:center;
text-shadow:1px 1px #ccc;
width:12em;
}
@-webkit-keyframes demo-an{
to{ -webkit-mask-position:500px ; }
} <div class="demo">原来我的真身是一把名刀</div><!-- end demo -->
http://ued.ctrip.com/blog/wp-content/webkitcss/index.html
http://www.w3cplus.com/sites/default/files/blogs/2013/1311/CubeInformation/index.html
http://ecd.tencent.com/css3/html/animation/transform-style.html#
http://www.html5tricks.com/demo/html5-circle-music-player/index.html#seek
卡片式翻转效果:
http://www.webhek.com/css-flip/
超链接特效:
http://www.webhek.com/misc/link-style/
图片展台3D效果:
http://www.webhek.com/misc/3d-album/
携程UED:
http://ued.ctrip.com/blog/wp-content/webkitcss/prop/flex.html