css实现纸鸟在空中展翅飞翔动画效果代码

代码语言:html

所属分类:动画

代码描述:css实现纸鸟在空中展翅飞翔动画效果代码

代码标签: css 纸鸟 空中 飞翔 飞行

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
<style>
body {
	background:#eef;
	height:100vh;
	overflow:hidden;
	display:flex;
	justify-content:center;
	align-items:center
}
#sky {
	margin-top:-60px;
	perspective:400px;
	filter:drop-shadow(0px 150px 10px rgba(0,0,0,0.2))
}
@-moz-document url-prefix() {
	#sky {
	filter:none
}
}#sky div {
	transform-style:preserve-3d
}
#sky .bird {
	-webkit-animation:fly 10000ms linear infinite;
	animation:fly 10000ms linear infinite
}
#sky .bird .wind {
	position:absolute;
	left:50%;
	width:4px;
	height:200px;
	margin-left:-2px;
	border-radius:999px;
	overflow:hidden
}
#sky .bird .wind:nth-child(1) {
	transform:translate3d(26px,-35px,-28px) rotateY(90deg)
}
#sky .bird .wind:nth-child(1)::before {
	content:"";
	position:absolute;
	width:4px;
	height:300px;
	background:rgba(100,200,41,0.3);
	border-radius:999px;
	transform:translateY(-300px);
	-webkit-animation:wind 2251ms 1140ms linear infinite;
	animation:wind 2251ms 1140ms linear infinite
}
#sky .bird .wind:nth-child(2) {
	transform:translate3d(-169px,-123px,54px) rotateY(90deg)
}
#sky .bird .wind:nth-child(2)::before {
	content:"";
	position:absolute;
	width:4px;
	height:300px;
	background:rgba(100,200,186,0.3);
	border-radius:999px;
	transform:translateY(-300px);
	-webkit-animation:wind 2099ms 3202ms linear infinite;
	animation:wind 2099ms 3202ms linear infinite
}
#sky .bird .wind:nth-child(3) {
	transform:translate3d(-155px,-47px,74px) rotateY(90deg)
}
#sky .bird .wind:nth-child(3)::before {
	content:"";
	position:absolute;
	width:4px;
	height:300px;
	background:rgba(100,200,231,0.3);
	border-radius:999px;
	transform:translateY(-300px);
	-webkit-animation:wind 1074ms 3855ms linear infinite;
	animation:wind 1074ms 3855ms linear infinite
}
#sky .bird .wind:nth-child(4) {
	transform:translate3d(-49px,83px,40px) rotateY(90deg)
}
#sky .bird .wind:nth-child(4)::before {
	content:"";
	position:absolute;
	width:4px;
	height:300px;
	background:rgba(100,200,203,0.3);
	border-radius:999px;
	transform:translateY(-300px);
	-webkit-animation:wind 2781ms 2419ms linear infinite;
	animation:wind 2781ms 2419ms linear infinite
}
#sky .bird .wind:nth-child(5) {
	transform:translate3d(36px,-39px,7px) rotateY(90deg)
}
#sky .bird .wind:nth-child(5)::before {
	content:"";
	position:absolute;
	width:4px;
	height:300px;
	background:rgba(100,200,27,0.3);
	border-radius:999px;
	transform:translateY(-300px);
	-webkit-animation:wind 2547ms 4336ms linear infinite;
	animation:wind 2547ms 4336ms linear infinite
}
#sky .bird .wind:nth-child(6) {
	transform:translate3d(198px,-55px,-49px) rotateY(90deg)
}
#sky .bird .wind:nth-child(6)::before {
	content:"";
	position:absolute;
	width:4px;
	height:300px;
	background:rgba(100,200,187,0.3);
	border-radius:999px;
	transform:translateY(-300px);
	-webkit-animation:wind 1380ms 3043ms linear infinite;
	animation:wind 1380ms 3043ms linear infinite
}
#sky .bird .wind:nth-child(7) {
	transform:translate3d(7px,-102px,12px) rotateY(90deg)
}
#sky .bird .wind:nth-child(7)::before {
	content:"";
	position:absolute;
	width:4px;
	height:300px;
	background:rgba(100,200,151,0.3);
	border-radius:999px;
	transform:translateY(-300px);
	-webkit-animation:wind 1881ms 2605ms linear infinite;
	animation:wind 1881ms 2605ms linear infinite
}
#sky .bird .wind:nth-child(8) {
	transform:translate3d(169px,-1px,-19px) rotateY(90deg)
}
#sky .bird .wind:nth-child(8)::before {
	content:"";
	position:absolute;
	width:4px;
	height:300px;
	background:rgba(100,200,173,0.3);
	border-radius:999px;
	transform:translateY(-300px);
	-webkit-animation:wind 1156ms 4509ms linear infinite;
	animation:wind 1156ms 4509ms linear infinite
}
#sky .bird .wind:nth-child(9) {
	transform:translate3d(39px,81px,66px) rotateY(90deg)
}
#sky .bird .wind:nth-child(9)::before {
	content:"";
	position:absolute;
	width:4px;
	height:300px;
	background:rgba(100,200,13,0.3);
	border-radius:999px;
	transform:translateY(-300px);
	-webkit-animation:wind 1774ms 3667ms linear infinite;
	animation:wind 1774ms 3667ms linear infinite
}
#sky .bird .wind:nth-child(10) {
	transform:translate3d(-176px,4px,-11px) rotateY(90deg)
}
#sky .bird .wind:nth-child(10)::before {
	content:"";
	position:absolute;
	width:4px;
	height:300px;
	background:rgba(100,200,140,0.3);
	border-radius:999px;
	transform:translateY(-300px);
	-webkit-animation:wind 2246ms 4858ms linear infinite;
	animation:wind 2246ms 4858ms linear infinite
}
#sky .bird .wind:nth-child(11) {
	transform:translate3d(-174p.........完整代码请登录后点击上方下载按钮下载查看

网友评论0