下面给大家展示利用HTML+CSS的3D动画模式制作一个立体的旋转木马
这里是html部分
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="css/旋转木马.css">
</head>
<body>
<section>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</section>
</body>
</html>
接下来是css部分内容
body {
perspective: 1000px;
}
section {
position: relative;
width: 300px;
height: 200px;
margin: