css3.0解析(2)
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>css3.0(2)</title>
<style type="text/css">
*{
padding: 0px;
margin: 0px;
}
.no1{
width: 300px;
height: 300px;
border: 3px solid peru;
border-radius: 150px; /*圆*/
}
.no2{
width: 300px;
height: 300px;
border-radius: 150px; /*圆*/
background-color: peachpuff;
animation: myplay 2s linear 1s infinite; /*等待时间,一次性的,需要刷新,infinite循环动画*/
}
@keyframes myplay{
/*from{
background-color: red;
}
to{
background-color: green;
}*/
/*0%{ 红色过渡到黄色,再过渡到紫色,最后到金色
background-color: red;
}
25%{
background-color: yellow;
}
50%{
background-color: plum;
}
100%{
background-color: goldenrod;
}*/
100%{
transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg) translate(300px) scale(0.2);
} /*旋转移动缩小,动起来*/
}
</style>
<!--
作者:shidiwen
时间:2021-01-26
描述:css 3.0解析(2)
-->
</head>
<body>
<div class="no1">
</div>
<div class="no2">
</div>
</body>
</html>