Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <div class="scene">

  <!-- clouds -->
  <div class="cloud"></div>
  <div class="cloud"></div>

  <!-- falling leafs -->
<!--   <div class="leaf"></div>
  <div class="leaf"></div>
  <div class="leaf"></div> -->

  <!-- parrot main -->
  <div class="parrot">
      <div class="parrot__head">
          <div class="parrot__eye">
              <div class="parrot__eye-inner"></div>
          </div>
          <div class="parrot__beak">
              <div class="parrot__beak-upper">

              </div>
              <div class="parrot__beak-lower">

              </div>
          </div>
          <div class="parrot__throat"></div>
      </div>
      <div class="parrot__body">
          <div class="parrot__breast">
            
              
            <div class="parrot__breast--top-left"></div>
            <div class="parrot__breast--top-right"></div>
            <div class="parrot__breast--bottom-left"></div>
            <div class="parrot__breast--bottom-right"></div>
            
              <div class="parrot__breast-inner">
                  <div class="parrot__breast-inner--top-left"></div>
                  <div class="parrot__breast-inner--top-right"></div>
                  <div class="parrot__breast-inner--bottom-left"></div>
                  <div class="parrot__breast-inner--bottom-right"></div>
              </div>
          </div>
          <div class="parrot__tail"></div>
      </div>
    
      <!-- parrot babies -->
  <div class="parrot-babies">
    <div class="parrot-baby parrot-baby--one">
      <div class="parrot-baby__eye">
          <div class="parrot-baby__eye-inner"></div>
      </div>
      <div class="parrot-baby__beak"></div>
    </div>

    <div class="parrot-baby parrot-baby--two">
      <div class="parrot-baby__eye">
          <div class="parrot-baby__eye-inner"></div>
      </div>
      <div class="parrot-baby__beak"></div>
    </div>

    <div class="parrot-baby parrot-baby--three">
      <div class="parrot-baby__eye">
          <div class="parrot-baby__eye-inner"></div>
      </div>
      <div class="parrot-baby__beak"></div>
    </div>
  </div>

  </div>

  


  <!-- parrot baby hatching -->
<!--   <div class="parrot-egg">
    <div class="parrot-egg__upper">
      <div class="parrot-baby">

      </div>
    </div>
    <div class="parrot-egg__lower"></div>

  </div> -->
  
  

  <!-- parrot nest -->
  <div class="nest">
    <div class="flower">

          <div class="egg"></div>

          <div class="leaf"></div>
          <div class="leaf"></div>
          <div class="leaf"></div>


    </div>
  </div>

  <div class="branch">
  

  </div>

  


</div>
              
            
!

CSS

              
                // $sky-gradient: linear-gradient(to right, #2980b9, #6dd5fa, rgb(255, 255, 255));
$sky-gradient: linear-gradient(0deg, #f8f3d8 20%, #10c0ff 50%, #fff 105%);
$cloud-gradient: linear-gradient(rgba(255, 255, 255, .5), rgba(255, 255, 255, 1));
$cloud: rgba(255, 255, 255, .7);
$branch: #734a2a;
$branch-light: #d38a4c;
$leaf: #8ebb48;
$leaf-light: #a5c663;
$parrot: #e24e40;
$parrot2: #ffb529;
$parrot3: #fc8031;
$parrot4: #a64c34;
$parrot5: #ef6838;
$parrot6: #ffb539;
$throat: #e6d6bd;
$eye: #fff;
$eye-inner: #324342;
$beak: #e6d6bd;
$beak-lower: #324342;
$tail: #1853ae;
$tail2: #429ce7;
$baby-eye: #e6d6bd;
$baby-eye-2: #2973ce;
$baby-beak: #fc8031;
$egg: #fff;
$cloud-size: 0.8;
$hatching-egg: #fc8031;
$hatching-egg2: #e24e40;

// reset
html,body {
    padding:0; 
    margin: 0;
}

html {
  font-size: 62.5%;
}

body {
  font-size: 1.4rem;
  background-image: $sky-gradient;
}

.scene {
  position: relative;
  display: flex;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  // &::after {
  //   content: " ";
  //   position: absolute;
  //   top: 50%;
  //   left: 50%;
  //   width: 80rem;
  //   height: 80rem;
  //   background-image: url('https://i.imgur.com/RPWfLDq.png');
  //   background-size: 80rem;
  //   background-position: center 17rem;
  //   background-repeat: no-repeat;
  //   transform: translate3d(-50%, -50%, 0);
  //   opacity: .2;
  //   pointer-events: none;
  // }
  
  
  
  & .cloud {
    position: relative;
    top: -5%;
    display: flex;
    width: 35rem;
    height: 12rem;
    margin: 12rem auto 2rem;
    border-radius: 10rem;
    background-color: $cloud;
    will-change: transform;
    transform-style: preserve-3d;
    transform-origin: center center;
    transform: translate3d(0, 0, 0) scale3d(.5, .5, .5);
    opacity: .6;
    animation: 70s cloud-moving-forwards linear forwards infinite;
    &::before {
      content: " ";
      position: absolute;
      z-index: 9;
      top: -9rem;
      right: 5rem;
      display: flex;
      width: 18rem;
      height: 18rem;
      border-radius: 20rem;
      background-color: $cloud;
    }
    &::after {
      content: " ";
      position: absolute;
      top: -5rem;
      left: 5rem;
      display: flex;
      width: 10rem;
      height: 10rem;
      border-radius: 10rem;
      background-color: $cloud;
    }
    &:nth-of-type(2) {
      top: 5%;
      opacity: 1;
      animation: 60s cloud-moving-backwards linear forwards infinite;
    }
  }
  
  
  
  & .branch {
    position: absolute;
    bottom: 25vh;
    left: 0;
    display: flex;
    width: 100%;
    height: 5rem;
    background-color: $branch;
    &::after {
      content: " ";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 2.5rem;
      background-color: $branch-light;
    }
  }
  
  & .parrot {
    position: absolute;
    z-index: 99;
    bottom: calc(25vh + 5rem);
    left: 44.5%;
    display: flex;
    width: 10rem;
    height: 28rem;
    flex-direction: column;
    // opacity: .3;
    & .parrot__head {
        position: relative;
        display: flex;
        width: 7.5rem;
        height: 8.1rem;
        border-top-right-radius: 4rem;
        background-color: $parrot;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        
      & .parrot__eye {
        position: relative;
        z-index: 2;
        display: flex;
        width: 3.5rem;
        height: 3.5rem;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background-color: $eye;
        border-radius: 50%;
        box-shadow: 0 0 0 1rem rgb(51, 51, 51, .1);
        & .parrot__eye-inner {
          display: flex;
          width: 1.25rem;
          height: 1.25rem;
          background-color: $eye-inner;
          border-radius: 50%;
          animation: 2.5s eye-shrink linear forwards infinite;
        }
      }
      
      & .parrot__beak {
          position: absolute;
          left: -3.5rem;
          display: flex;
          width: 3.5rem;
          height: 7rem;
          flex-direction: column;
          align-items: flex-end;
          & .parrot__beak-upper {
            display: flex;
            width: 3.5rem;
            height: 3.5rem;
            background-color: $beak;
            border-top-left-radius: 6rem;
            animation: 1s upper-beak-movement linear forwards infinite;
          }
          & .parrot__beak-lower {
            display: flex;
            width: 2.5rem;
            height: 2.5rem;
            background-color: $beak-lower;
            border-bottom-left-radius: 4rem;
            animation: 1s lower-beak-movement linear forwards infinite;
          }
      }
      
      & .parrot__throat {
          position: absolute;
          bottom: 0;
          left: 0;
          display: flex;
          width: 4rem;
          height: 4rem;
          background-color: $throat;
      }
      
    }

    
      
      & .parrot__body {
        display: flex;
        width: 15rem;
        height: 20rem;
        margin-top: .1rem;
        margin-right: 2rem;
        align-self: center;
        border-radius: 10rem;
        border-bottom-right-radius: 0;
        background-color: $parrot;
        
        & .parrot__breast {
          position: relative;
          z-index: 999;
          top: -.1rem;
          display: flex;
          width: 15rem;
          height: 15rem;
          flex-direction: column;
          align-items: center;
          justify-content: center;
          border-radius: 50%;
          overflow: hidden;
          &::before {
            content: " ";
            position: absolute;
            top: 0;
            left: 0;
            width: 15rem;
            height: 15rem;
            background-color: $parrot3;
            border-radius: 50%;
          }
          
          &::after {
            content: " ";
            position: absolute;
            top: 7.5rem;
            left: 0;
            width: 15rem;
            height: 7.5rem;
            background-color: $parrot2;
            border-radius: 50%;
            border-top-left-radius: 0;
            border-top-right-radius: 0;
          }
          
          & .parrot__breast-inner {
            position: relative;
            display: flex;
            width: 7rem;
            height: 7rem;
            border-radius: 50%;
            background-color: $parrot3;
            
            & .parrot__breast-inner--top-left {
              position: absolute;
              top: 0;
              left: 0;
              z-index: 999999;
              display: flex;
              width: 3.5rem;
              height: 3.5rem;
              background: $parrot2;
              border-radius: 1rem 0 15rem 0rem;
              will-change: transform;
              transform-style: preserve-3d;
              transform-origin: center center;
              transform: rotate3d(0, 0, 1, 
          180deg);
            }
            & .parrot__breast-inner--top-right {
              position: absolute;
              top: 0;
              left: 3.5rem;
              z-index: 999999;
              display: flex;
              width: 3.5rem;
              height: 3.5rem;
              background: $parrot;
              border-radius: 1rem 0 15rem 0rem;
              will-change: transform;
              transform-style: preserve-3d;
              transform-origin: center center;
              transform: rotate3d(0, 0, 1, 
          -90deg);
            }
            & .parrot__breast-inner--bottom-left {
              position: absolute;
              top: 3.5rem;
              left: 0;
              z-index: 999999;
              display: flex;
              width: 3.5rem;
              height: 3.5rem;
              background: $parrot;
              border-radius: 1rem 0 15rem 0rem;
              will-change: transform;
              transform-style: preserve-3d;
              transform-origin: center center;
              transform: rotate3d(0, 0, 1, 
          90deg);
              
            }
            & .parrot__breast-inner--bottom-right {
              position: absolute;
              top: 3.5rem;
              left: 3.5rem;
              z-index: 999999;
              display: flex;
              width: 3.5rem;
              height: 3.5rem;
              background: $parrot4;
              border-radius: 1rem 0 15rem 0rem;
              will-change: transform;
              transform-style: preserve-3d;
              transform-origin: center center;
              transform: rotate3d(0, 0, 0, 0 );
              
            }
          }
          
        }
        
        & .parrot__tail {
            position: absolute;
            z-index: 100;
            right: -1.5rem;
            display: flex;
            width: 7.5rem;
            height: 30rem;
            background-color: $tail;
            border-top-right-radius: 10rem;
            border-bottom-left-radius: 10rem;
            background-blend-mode: multiply;
          
            &::after {
              content: " ";
              position: absolute;
              top: 0rem;
              left: 0rem;
              width: 7.5rem;
              height: 30rem;
              border-top-right-radius: 10rem;
              border-bottom-left-radius: 10rem;
              background-color: $tail2;
              -webkit-clip-path: polygon(0 0, 50% 0, 50% 100%, 0% 100%);
              clip-path: polygon(0 0, 50% 0, 50% 100%, 0% 100%);
            }
        }
      }
      // parrot babies
      & .parrot-babies {
          position: absolute;
          bottom: 0;
          left: -28rem;
          display: flex;
          height: 4rem;
          & .parrot-baby {
              display: flex;
              width: 4rem;
              height: 4rem;
              margin: 0 1.5rem;
              flex-direction: column;
              align-items: center;
              justify-content: center;
              background-color: $parrot;
              border-radius: 50%;
              will-change: transform;
              transform-style: preserve-3d;
              transform-origin: center center;
            transform: translate3d(0, 0, 0) rotate3d(0, 0, 0, 0) scale3d(1, 1, 1) perspective(1rem);
            
              &.parrot-baby--one {
                animation: .5s jump linear infinite forwards;
              }

              &.parrot-baby--two {
                  animation: 2.5s rotate linear forwards infinite;
              }

              &.parrot-baby--three {
                  transform: translate3d(0, 0, 0) rotate3d(0, 0, 0, 0) perspective(1rem);
                  animation: 1s low-jump linear forwards infinite;

                &::before {
                  content: " ";
                  position: absolute;
                  z-index: 999;
                  display: flex;
                  width: 4rem;
                  height: 2rem;
                  margin-top: 2rem;
                  background-color: $egg;
                  border-bottom-left-radius: 10rem;
                  border-bottom-right-radius: 10rem;
                  will-change: transform;
                  transform-style: preserve-3d;
                  transform-origin: bottom;
                  transform: translate3d(0, 0, 0) scale3d(1, 1, 1) rotate3d(0, 0, 0, 0) perspective(1rem);
                  box-shadow: inset 0 0 .5rem .2rem rgb(51, 51, 51, .15);
                  animation: 1s lower-egg-shell-moving linear forwards infinite;
                  
                }
                &::after {
                  content: " ";
                  position: absolute;
                  z-index: 999;
                  display: flex;
                  width: 4rem;
                  height: 2rem;
                  margin-top: 2rem;
                  background-color: $egg;
                  border-bottom-left-radius: 10rem;
                  border-bottom-right-radius: 10rem;
                  will-change: transform;
                  transform-style: preserve-3d;
                  transform-origin: bottom left;
                  transform: rotate3d(0, 0, 1, -215deg) translate3d(-5.25rem, 3.75rem, 0) scale3d(1, 1, 1) perspective(1rem);
                  box-shadow: inset 0 0 .5rem .2rem rgb(51, 51, 51, .15);
                  animation: 1s upper-egg-shell-moving linear forwards infinite;
                }
              }

              & .parrot-baby__eye {
                  position: absolute;
                  z-index: 10;
                  display: flex;
                  width: 2.5rem;
                  height: 2.5rem;
                  flex-direction: column;
                  align-items: center;
                  justify-content: center;
                  background-color: $baby-eye;
                  border-radius: 50%;

                & .parrot-baby__eye-inner {
                  position: absolute;
                  z-index: 10;
                  display: flex;
                  width: .75rem;
                  height: .75rem;
                  background-color: $baby-eye-2;
                  border-radius: 50%;
                }
              }

              & .parrot-baby__beak {
                position: absolute;
                z-index: 99;
                top: 0;
                right: -.25rem;
                display: flex;
                width: 0;
                height: 0;
                border-left: .75rem solid transparent;
                border-right: .75rem solid transparent;
                border-bottom: .75rem solid $baby-beak;
                will-change: transform;
                transform-style: preserve-3d;
                transform-origin: center center;
                transform: rotate3d(0, 0, 1, 
            48deg
            ) translate3d(0, 0, 0) perspective(1rem);
            }

          }

          & .parrot-egg {
              position: absolute;
              bottom: calc(25vh + 5rem);
              left: 40%;
              display: flex;
              width: 4rem;
              height: 4rem;
              flex-direction: column;
              align-items: center;
              justify-content: center;
              background-color: $parrot;
              border-radius: 50%;
              will-change: transform;
              transform-style: preserve-3d;
              transform-origin: center center;
              transform: translate3d(0, 0, 0) rotate3d(0, 0, 1, 50deg) perspective(1rem);

            
          }
      }
    
  }
  
  & .nest {
    position: absolute;
    z-index: 99;
    bottom: calc(25vh + 5rem);
    left: calc(50% + 10rem);
    display: flex;
    width: 20rem;
    height: 23rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    & .flower {
      display: flex;
      width: 100%;
      & .egg {
        display: flex;
        width: 13rem;
        height: 11rem;
        margin: 7rem auto 1rem auto;
        border-radius: 50%;
        background: radial-gradient($parrot2, $parrot);
      }
      & .leaf {
        position: absolute;
        bottom: 0;
        left: 0;
        display: flex;
        width: 10rem;
        height: 10rem;
        border-radius: 10rem 0;
        background-color: $leaf;
        will-change: transform;
        transform-style: preserve-3d;
        transform-origin: center center;
        transform: translate3d(5rem, 5rem, 0) rotate3d(0, 0, 1, 
450deg) perspective(1rem);
        transform-origin: center top;
        animation: 1.5s rotate-left linear alternate infinite;
        
        
        &:nth-of-type(2) {
          z-index: 99;
          width: 12rem;
          height: 12rem;
          border-radius: 12rem 0;
          background-color: $leaf-light;
          transform-origin: center center;
          transform: translate3d(4rem, -2.5rem, 0) rotate3d(0, 0, 1, -45deg) perspective(1rem);
          animation: none;
          
          &::after {
          content: " ";
          position: absolute;
          top: 0rem;
          left: 0rem;
          width: 12rem;
          height: 12rem;
          border-radius: 12rem 0;
          background-color: $leaf;
          clip-path: polygon(0 0, 100% 0, 0% 100%, 0% 100%);
        }
        }
        &:nth-of-type(3) {
          background-color: $leaf-light;
          transform-origin: bottom left;
          transform: translate3d(10rem, 0rem, 0) rotate3d(0, 0, 0, 0) perspective(1rem);
          animation: 1.5s rotate-right linear alternate infinite;
        }
        
      }
    }
  }
  
  
  
  
}

@keyframes cloud-moving-forwards {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale3d($cloud-size / 2, $cloud-size / 2, $cloud-size / 2);
  }
  5% {
    opacity: 0;
    transform: translate3d(-110vw, 0, 0) scale3d($cloud-size / 2, $cloud-size / 2, $cloud-size / 2);
  }
  15% {
    opacity: .6;
    transform: translate3d(-100vw, 0, 0) scale3d($cloud-size / 2, $cloud-size / 2, $cloud-size / 2);
  }
  95% {
    opacity: .6;
    transform: translate3d(150vw, 0, 0) scale3d($cloud-size / 2, $cloud-size / 2, $cloud-size / 2);
  }
  100% {
    opacity: 0;
    transform: translate3d(150vw, 0, 0) scale3d($cloud-size / 2, $cloud-size / 2, $cloud-size / 2);
  }
}


@keyframes cloud-moving-backwards {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale3d($cloud-size, $cloud-size, $cloud-size); 
}
  5% {
    opacity: 0;
    transform: translate3d(110vw, 0, 0) scale3d($cloud-size, $cloud-size, $cloud-size);
 }
  15% {
    opacity: 1;
    transform: translate3d(100vw, 0, 0) scale3d($cloud-size, $cloud-size, $cloud-size);
 }
  95% {
    opacity: 1;
    transform: translate3d(-110vw, 0, 0) scale3d($cloud-size, $cloud-size, $cloud-size);
 }
  100% {
    opacity: 0;
    transform: translate3d(-110vw, 0, 0) scale3d($cloud-size, $cloud-size, $cloud-size);
 }
}

@keyframes jump {
  0% {
    transform: translate3d(0, 0, 0) rotate3d(0, 0, 0, 0);
  }
  50% {
    transform: translate3d(0, -.5rem, 0) rotate3d(0, 0, 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0) rotate3d(0, 0, 0, 0);
  }
}

@keyframes low-jump {
  0% {
    transform: translate3d(0, 0, 0) rotate3d(0, 0, 0, 0);
  }
  50% {
    transform: translate3d(0, -.25rem, 0) rotate3d(0, 0, 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0) rotate3d(0, 0, 0, 0);
  }
}

@keyframes rotate {
  0% {
    transform: translate3d(0, 0, 0) rotate3d(0, 0, 1, 50deg);
  }
  40% {
    transform: translate3d(0, 0, 0) rotate3d(0, 0, 1, 50deg);
  }
  50% {
    transform: translate3d(0, 0, 0) rotate3d(0, 0, 1, -.1deg);
  }
  60% {
    transform: translate3d(0, 0, 0) rotate3d(0, 0, 1, -.1deg);
  }
  70% {
    transform: translate3d(0, 0, 0) rotate3d(0, 0, 1, 70deg);
  }
  95% {
    transform: translate3d(0, 0, 0) rotate3d(0, 0, 1, 70deg);
  } 
  100% {
    transform: translate3d(0, 0, 0) rotate3d(0, 0, 1, 50deg);
  } 
}


@keyframes upper-beak-movement {
  0% {
    transform: translate3d(0, 0, 0) rotate3d(0, 0, 0, 0) scale3d(1, 1, 1) perspective(1rem);
  }
  50% {
  transform: translate3d(-0.35rem, -.25rem, 0) rotate3d(0, 0, 1, 5deg) scale3d(1.1, 1.1, 1.1) perspective(1rem);
  }
  100% {
    transform: translate3d(0, 0, 0) rotate3d(0, 0, 0, 0) scale3d(1, 1, 1) perspective(1rem);
  }
}

@keyframes lower-beak-movement {
  0% {
    transform: translate3d(0, 0, 0) rotate3d(0, 0, 0, 0) scale3d(1, 1, 1) perspective(1rem);
  }
  50% {
  transform: translate3d(0.25rem, .25rem, 0) rotate3d(0, 0, 1, -5deg) scale3d(1.1, 1.1, 1.1) perspective(1rem);
  }
  100% {
    transform: translate3d(0, 0, 0) rotate3d(0, 0, 0, 0) scale3d(1, 1, 1) perspective(1rem);
  }
}

@keyframes eye-shrink {
  0% {
    transform: scale3d(1, 1, 1);
  }
  15% {
    transform: scale3d(.8, .8, .8);
  }
  30% {
    transform: scale3d(.7, .7, .7);
  }
  90% {
    transform: scale3d(.7, .7, .7);
  }
  100% {
    transform: scale3d(1, 1, 1);
  }
}

@keyframes upper-egg-shell-moving {
  0% {
    transform: rotate3d(0, 0, 1, -215deg) translate3d(-5.25rem, 3.75rem, 0) scale3d(1, 1, 1) perspective(1rem);
  }
  20% {
    transform: rotate3d(0, 0, 1, -215deg) translate3d(-5.25rem, 3.75rem, 0) scale3d(1, 1, 1) perspective(1rem);
  }
  40% {
  transform: rotate3d(0, 0, 1, -225deg) translate3d(-5.25rem, 3.75rem, 0) scale3d(1, 1, 1) perspective(1rem);
  }
  60% {
  transform: rotate3d(0, 0, 1, -225deg) translate3d(-5.25rem, 3.75rem, 0) scale3d(1, 1, 1) perspective(1rem);
  }
  100% {
    transform: rotate3d(0, 0, 1, -215deg) translate3d(-5.25rem, 3.75rem, 0) scale3d(1, 1, 1) perspective(1rem)
  }
}

@keyframes lower-egg-shell-moving {
  0% {
    transform: translate3d(0, 0, 0) scale3d(1, 1, 1) rotate3d(0, 0, 0, 0) perspective(1rem);
  }
  20% {
    transform: translate3d(0, 0, 0) scale3d(1, 1, 1) rotate3d(0, 0, 0, 0) perspective(1rem);
  }
  40% {
    transform: translate3d(-.15rem, .25rem, 0) scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 5deg) perspective(1rem);
  }
  60% {
    transform: translate3d(-.15rem, .25rem, 0) scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 5deg) perspective(1rem);
  }
  100% {
    transform: translate3d(0, 0, 0) scale3d(1, 1, 1) rotate3d(0, 0, 0, 0) perspective(1rem);
  }
}


@keyframes rotate-right {
  0% {
    transform: translate3d(10rem, 0rem, 0) rotate3d(0, 0, 0, 0) perspective(1rem);
  }
  50% {
  transform: translate3d(10rem, 0rem, 0) rotate3d(0, 0, 1, 5deg) perspective(1rem);
  }
  100% {
    transform: translate3d(10rem, 0rem, 0) rotate3d(0, 0, 0, 0) perspective(1rem);
  }
}

@keyframes rotate-left {
  0% {
    transform: translate3d(5rem, 5rem, 0) rotate3d(0, 0, 1, 
450deg) perspective(1rem);
  }
  50% {
  transform: translate3d(5rem, 5rem, 0) rotate3d(0, 0, 1, 
445deg) perspective(1rem);
  }
  100% {
    transform: translate3d(5rem, 5rem, 0) rotate3d(0, 0, 1, 
450deg) perspective(1rem);
  }
}

              
            
!

JS

              
                /* Please ❤ this if you like it! */
/* got inspiration from this shot */
/* https://dribbble.com/shots/1546748-Magic-birds */
              
            
!
999px

Console