div+css模拟飞船火星登录动画效果代码
代码语言:html
所属分类:动画
代码描述:div+css模拟飞船火星登录动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
.space {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: #435d70;
overflow: hidden;
}
.space .mars {
position: absolute;
top: 50%;
left: 50%;
z-index: 2;
}
.space .mars .tentacle {
position: absolute;
top: -60px;
right: -80px;
z-index: 1;
height: 70px;
width: 70px;
box-sizing: border-box;
border-radius: 100%;
border-left: 15px solid #1aae1e;
-webkit-transform: rotate(-30deg);
transform: rotate(-30deg);
-webkit-animation: tentacle 12s cubic-bezier(0.645, 0.045, 0.355, 1) infinite;
animation: tentacle 12s cubic-bezier(0.645, 0.045, 0.355, 1) infinite;
}
.space .mars .flag {
position: absolute;
height: 17px;
width: 15px;
top: -57px;
left: -1px;
-webkit-animation: flag-pole 12s cubic-bezier(0.645, 0.045, 0.355, 1) infinite;
animation: flag-pole 12s cubic-bezier(0.645, 0.045, 0.355, 1) infinite;
}
.space .mars .flag:before {
content: "";
position: absolute;
height: 17px;
width: 2px;
background: #eee;
}
.space .mars .flag:after {
content: "";
position: absolute;
height: 10px;
width: 14px;
left: 2px;
top: 0;
background: #aaa;
-webkit-animation: flag-unfurl 12s cubic-bezier(0.645, 0.045, 0.355, 1) infinite;
animation: flag-unfurl 12s cubic-bezier(0.645, 0.045, 0.355, 1) infinite;
}
.space .mars .flag .small-tentacle {
position: absolute;
left: -16px;
top: 3px;
height: 50px;
width: 50px;
border-left: 10px solid #1aae1e;
border-radius: 100%;
-webkit-transform: rotate(25deg);
transform: rotate(25deg);
-webkit-animation: small-tentacle 12s cubic-bezier(0.645, 0.045, 0.355, 1) infinite;
animation: small-tentacle 12s cubic-bezier(0.645, 0.045, 0.355, 1).........完整代码请登录后点击上方下载按钮下载查看
















网友评论0