css+emoji表情实现飞机云中飞行穿梭动画效果代码

代码语言:html

所属分类:动画

代码描述:css+emoji表情实现飞机云中飞行穿梭动画效果代码

代码标签: css emoji 表情 飞机 云中 飞行 穿梭 动画

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


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

<head>

  <meta charset="UTF-8">
  


  
  
<style>
body {
  height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  background: #020024;
  background-image: linear-gradient(180deg, #020024 0%, #090979 35%, #00d4ff 100%);
  position: relative;
  overflow: hidden;
}

.fly {
  font-size: 10rem;
  margin: auto;
}
.fly .emoji {
  display: block;
  transform: rotate(-45deg);
}

.sky {
  position: absolute;
  top: -100vh;
  left: 0;
  width: 100vw;
  height: 200vh;
  -webkit-animation: ttb 9s infinite linear;
          animation: ttb 9s infinite linear;
}
.sky .cloud {
  position: absolute;
}
.sky .cloud:nth-child(1n) {
  transform: scale(3);
  left: 50%;
  top: 5%;
  opacity: 0.9;
}
.sky .cloud:nth-child(2n) {
  transform: scale(2.5);
  opacity: 0.3;
}
.sky .cloud:nth-child(3n) {
  transform: scale(7) rotateY(180deg);
  left: 80%;
  top: 10%;
}
.sky .cloud:nth-child(4n) {
  transform: scale(4) rotateY(180deg);
  left: 50%;
  top: 20%;
}
.sky .cloud:nth-child(5n) {
  transform: scale(2.5);
  left: 20%;
  top: 30%;
}
.sky .cloud:nth-child(7n) {
  transform: scale(15) rotateY(180deg);
  left: 40%;
  top: 40%;
  opacity: 0.2;
}
.sky .cloud:nth-child(10n) {
  transform: scale(10);
  left: 5%;
  top: 50%;
}
.sky .cloud:nth-child(17n) {
  transform: scale(8) rotateY(180deg);
  left: 15%;
  top: 105%;
}
.sky .cloud:nth-child(23n) {
  transform: scale(4) rotateY(180deg);
  left: 85%;
  top: 55%;
}
.sky .cloud:nth-child(27n) {
  transform: scale(6);
  left: 55%;
  top: 70%;
}

.high {
  top: -200vh;
  height: 400vh;
  transform: rotateY(-180deg);
  -webkit-animation: ttb 17s infinite linear;
          animation: ttb 17s infinite linear;
}

@-webkit-keyframes ttb {
  0% {
    transform: translate3d(0, -100%, 0);
  }
  100% {
    transform: translate3d(0, 100%, 0);
  }
}

@keyframes ttb {
  0% {
    transform: translate3d(0, -100%, 0);
  }
  100% {
    transform: translate3d(0, 100%, 0);
  }
}
</style>



</head>

<body >
  <div class="sky">
	<i class="cloud">☁️</i>
	<i class="cloud">☁️</i>
	<i class="cloud">☁️</i>
	<i class="cloud">☁️</i>
	<i class="cloud">☁️</i>
	<i class="cloud">☁️</i>
	<i class="cloud">☁️</i>
	<i class="cloud">☁️</i>
	<i class="cloud">☁️</i>
	<i class="cloud">☁️</i>
	<i class="cloud">☁️</i>
	<i class="cloud">☁️</i>
	<i class="cloud">☁️</i>
	<i class="cloud">☁️</i>
	<i class="cloud">☁️</i&g.........完整代码请登录后点击上方下载按钮下载查看

网友评论0