<! DOCTYPE html>
<meta charset= "UTF-8" >
<title></title>
<style>
. yxdh{
width:200px;
height:200px;
border:1px solid red;
background-color:red;
Transform:translate (400px,0px);
-webkit-transform:translate (400px,0px);
border-radius:100px;
-moz-border-radius:100px;
-webkit-border-radius:100px;
ANIMATION-NAME:DH;
Animation-duration:1s;
Animation-iteration-count:infinite;
Animation-timing-function:ease-in-out;
-WEBKIT-ANIMATION-NAME:DH;
-webkit-animation-duration:1s;
-webkit-animation-iteration-count:infinite;
-webkit-animation-timing-function:ease-in-out;
margin:100px Auto;
}
@keyframes DH {
0%{
Transform:scale (0);
opacity:100;
-webkit-transform:scale (0);
}
100%{
Transform:scale (1);
opacity:0;
-webkit-transform:scale (1);
}
}
@-webkit-keyframes DH {
0%{
Transform:scale (0);
opacity:100;
-webkit-transform:scale (0);
}
100%{
Transform:scale (1);
opacity:0;
-webkit-transform:scale (1);
}
}
</style>
<body>
<div class= "YXDH" ></div>
</body>
CSS small animation: in the circle 1s from small to large with time gradient