时钟原理
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>时钟原理</title>
<!-- <link rel="stylesheet" href="../chujicss/css/11.28.05.css"> -->
<style>
*{
margin: 0;
padding: 0;
}
.box1{
width: 500px;
height: 500px;
background-color: #bfa;
animation: run 60s;
}
.box2{
height: 250px;
width: 4px;
background-color: red;
margin:0 auto;
}
@keyframes run {
from{
transform: rotateZ(0);
}
to{
transform: rotateZ(360deg);
}
}
</style>
</head>
<body>
<div class="box1">
<div class="box2"></div>
</div>
</body>
</html>
运行结果为: