css实现海鸥鸟儿空中盘旋飞翔动画效果代码

代码语言:html

所属分类:动画

代码描述:css实现海鸥鸟儿空中盘旋飞翔动画效果代码

代码标签: css 海鸥 鸟儿 空中 盘旋 飞翔 动画

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

<!DOCTYPE html>
<html lang="en" >
<head>
  <meta charset="UTF-8">
<style>
    *, *::before, *::after {
  padding: 0;
  margin: 0 auto;
  box-sizing: border-box;
}

body {
  background-color: black;
  height: 100vh;
  background-image: linear-gradient(#002, #003 33%, #002 50%, black 50%, #432);
}

.cont {
  width: 0;
  height: 0;
  position: fixed;
  top: 50%;
  left: 50%;
  perspective: 420px;
  perspective-origin: center -150px;
}

.bird {
  width: 0;
  height: 30px;
  position: absolute;
  top: 50%;
  left: 50%;
  animation: bird 15s infinite linear;
}
.bird:nth-child(2) {
  animation-delay: -5s;
}
.bird:nth-child(3) {
  animation-delay: -10s;
}
@keyframes bird {
  from {
    transform: translate(-50%, -50%) rotateY(0deg) translate3d(150px, 0, 0);
  }
  to {
    transform: translate(-50%, -50%) rotateY(-360deg) translate3d(150p.........完整代码请登录后点击上方下载按钮下载查看

网友评论0