<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 "/>
<title></title>
<style>
. abc{}
. Hou {
width:200px;
height:200px;
margin:100px Auto;
Background-color: #F9F;
border-radius:200px;
-webkit-animation:scaleout 6.0s Infinite ease-in-out;
Animation:scaleout 6.0s Infinite ease-in-out;
}
@-webkit-keyframes Scaleout {
0% {-webkit-transform:scale (0,0); opacity:0;}
50% {
-webkit-transform:scale (a);
Opacity:1;
}
100% {
-webkit-transform:scale (0,0);
opacity:0;
}
}
@keyframes Scaleout {
0% {
Transform:scale (0.0);
-webkit-transform:scale (0.0);
}
50%{
-webkit-transform:scale (a);
Transform:scale (a);
Opacity:1;
}
100% {
Transform:scale (0,0);
-webkit-transform:scale (0,0);
opacity:0;
}
}
</style>
<body>
<div class= "Hou" ></div>
</body>
This article is from the "front-end development" blog, so be sure to keep this source http://maobin.blog.51cto.com/6335599/1576088
CSS3 Animation effect--transition effect