技能get:用HTML5实现波浪效果

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=
, initial-scale=1.0">rr
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
.box{
width: 500px;
height: 500px;
margin:100px auto;
background:hotpink;
border-radius: 35%;
animation: rotate 3s linear infinite;
}
@keyframes rotate {
from{transform: rotate(0deg)}
to{transform: rotate(359deg)}
}
</style>
</head>
<body>
<div class="box"></div>
</body>
</html>

猜你喜欢

转载自www.cnblogs.com/5274h/p/10751353.html