div+css实现月亮地球太阳公转动画效果代码
代码语言:html
所属分类:动画
代码描述:div+css实现月亮地球太阳公转动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!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">
<style>
*{
padding: 0;
margin: 0;
box-sizing: border-box;
}
body{
width: 100%;
height: 100vh;
background-color: #000;
display: flex;
justify-content: center;
align-items: center;
}
.container{
width: 40rem;
height: 40rem;
/* border: 1px solid red; */
position: relative;
display: flex;
justify-content: center;
align-items: center;
}
.container .sun{
position: absolute;
width: 10rem;
.........完整代码请登录后点击上方下载按钮下载查看
网友评论0