<div class='container'>
  <!-- Top right animations  -->
  <div class='hover-top-right'></div>

  <!-- bottom right animations  -->
  <div class='hover-bottom-right'></div>

  <!-- top left animations  -->
  <div class='hover-top-left'></div>

  <!-- bottom left animations  -->
  <div class='hover-bottom-left'></div>

  <div class='kurzgesagt'>
    <!-- Hull  -->
    <div class='hull'>
      <div class='hull__reflection'></div>
      <div class='hull__shadow'></div>
      <div class='hull__person'>
        <div class='hull__person__eye'></div>
        <div class='hull__person__nose'></div>
      </div>
    </div>

    <!-- Motor  -->
    <div class='motor'>
      <div class='motor__protector'>
        <div class='motor__protector__line-1'></div>
        <div class='motor__protector__line-2'></div>
      </div>
      <div class='motor__machine'>
        <div class='motor__machine__line-1'></div>
        <div class='motor__machine__inner-shadow'></div>
        <div class='motor__machine__inner'>
          <div class='motor__machine__inner__line-1'></div>
          <div class='motor__machine__inner__line-2'></div>
          <div class='motor__machine__inner__line-3'></div>
        </div>
      </div>
      <div class='motor__cooler'>
        <div class='motor__cooler__line-1'></div>
      </div>
    </div>

    <!-- Legs  -->
    <div class='legs'>
      <div class='legs__leg legs__leg--left'>
        <div class='legs__leg__foot'>
          <div class='legs__leg__foot__line-1'></div>
        </div>
      </div>
      <div class='legs__leg legs__leg--right'>
        <div class='legs__leg__foot'>
          <div class='legs__leg__foot__line-1'></div>
        </div>
      </div>
      <div class='legs__shadow'></div>
    </div>

    <!-- Properllers  -->
    <div class='propellers'>
      <div class='propeller propeller--left'>
        <div class='propeller__front'>
          <div class='propeller__bubbles'>
            <div class='propeller__front__bubble propeller__front__bubble__1'></div>
            <div class='propeller__front__bubble propeller__front__bubble__2'></div>
            <div class='propeller__front__bubble propeller__front__bubble__3'></div>
            <div class='propeller__front__bubble propeller__front__bubble__4'></div>
          </div>
          <div class='propeller__front__fan-hole'>
            <div class='propeller__front__fan-hole__spinner'>
              <div class='propeller__front__fan-hole__spinner__line-1'></div>
              <div class='propeller__front__fan-hole__spinner__line-2'></div>
              <div class='propeller__front__fan-hole__spinner__line-3'></div>
            </div>
          </div>
        </div>
        <div class='propeller__middle'></div>
        <div class='propeller__back'></div>
      </div>
      <div class='propeller propeller--right'>
        <div class='propeller__front'>
          <div class='propeller__bubbles'>
            <div class='propeller__front__bubble propeller__front__bubble__1'></div>
            <div class='propeller__front__bubble propeller__front__bubble__2'></div>
            <div class='propeller__front__bubble propeller__front__bubble__3'></div>
            <div class='propeller__front__bubble propeller__front__bubble__4'></div>
          </div>
          <div class='propeller__front__line-1'></div>
          <div class='propeller__front__fan-hole'>
            <div class='propeller__front__fan-hole__spinner'>
              <div class='propeller__front__fan-hole__spinner__line-1'></div>
              <div class='propeller__front__fan-hole__spinner__line-2'></div>
              <div class='propeller__front__fan-hole__spinner__line-3'></div>
            </div>
          </div>
        </div>
        <div class='propeller__middle'></div>
        <div class='propeller__back'></div>
      </div>
    </div>

    <!-- Antenna  -->
    <div class='antenna'>
      <div class='antenna__back'>
        <div class='antenna__back__line-1'></div>
      </div>
      <div class='antenna__top'></div>
    </div>

    <!-- back and passanger -->
    <div class='back'>
      <div class='back__line-1'></div>
      <div class='passenger'>
        <div class='passenger__shadow'></div>
        <div class='passenger__person'>
          <div class='passenger__person__eye'></div>
          <div class='passenger__person__nose'></div>
          <div class='passenger__person__body'></div>
        </div>
      </div>
    </div>

    <!-- lights  -->
    <div class='lights'>
      <div class='light light--front'>
        <div class='light__line-1'></div>
        <div class='light__bulb'>
          <div class='light__bulb__spark'></div>
          <div class='hover-top'></div>
          <div class='light__bulb__beam'></div>
        </div>
      </div>
      <div class='light light--back'>
        <div class='light__line-1'></div>
        <div class='light__bulb'>
          <div class='light__bulb__spark'></div>
          <div class='light__bulb__beam'></div>
        </div>
      </div>
    </div>
  </div>
</div>
@mixin box($size) {
  width: $size;
  height: $size;
}

@mixin round($arg: 50%) {
  border-radius: $arg;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  width: 100vw;
  height: 100vh;
  background-color: #6835AC;
  display: grid;
  place-items: center;
  overflow: hidden;
}

#root {
  width: 100vw;
  height: 100vh;
  display: grid;
  place-items: center;
}

.container {
  @include box(327px);
  position: relative;
}

.kurzgesagt {
  transform: scale(0.7);
}

// Hull
.hull {
  @include box(327px);
  @include round();
  background-color: #20E9FD;
  border: 18px solid #4E37FD;
  overflow: hidden;
  position: relative;
  z-index: 1;
  transition: 1s ease-in-out;

  &__reflection {
    @include round(20px);
    background-color: #FEFEFE;
    width: 24px;
    height: 52px;
    position: absolute;
    top: 15%;
    right: 33px;
    transform: rotate(-45deg);
  }

  &__shadow {
    @include box(327px);
    @include round();
    background-color: #398DFE;
    transform: translate(-62%, 40%);
  }

  &__person {
    position: absolute;
    bottom: -50px;
    right: 60px;
    height: 80%;
    width: 80px;
    border-radius: 50px;
    background-color: #040404;
    z-index: 2;

    &__eye {
      @include box(43px);
      @include round();
      background-color: #FEFEFE;
      position: absolute;
      top: 30px;
      left: 50%;
      transform: translateX(-50%);

      &:before {
        @include box(inherit);
        @include round();
        content: '';
        display: block;
        position: absolute;
        background-color: #040404;
        top: 100%;
        transform: translateY(-40%);
        transition: .6s;
      }
    }

    &__nose {
      position: absolute;
      left: 100%;
      top: 56px;
      width: 35px;
      height: 32px;
      background-color: #EF7E50;
      border-top-right-radius: 50px;
      border-bottom-right-radius: 50px;
      z-index: -1;
    }
  }
}

// Hull protector / Machine / Cooler
.motor {
  // Protector
  &__protector {
    background-color: #FEA001;
    position: absolute;
    bottom: 0;
    width: 350px;
    height: 66px;
    @include round(50px);
    z-index: 2;

    div {
      @include round(10px);
      background-color: #FEDE02;
      position: absolute;
      top: 10px;
      height: 10px;
    }

    &__line-1 {
      width: 117px;
      left: 140px;
    }

    &__line-2 {
      width: 40px;
      left: 270px;
    }
  }

  // Machine
  &__machine {
    @include round(43px);
    position: absolute;
    left: -100px;
    bottom: 0;
    background-color: #FF6820;
    width: 190px;
    height: 130px;
    z-index: 2;

    &__line-1 {
      @include round(10px);
      background-color: #F5A57F;
      position: absolute;
      top: 10px;
      height: 14px;
      width: 80px;
      left: 50%;
      transform: translateX(-50%);
    }

    &__inner {
      @include round(16px);
      background-color: #A02A7D;
      position: absolute;
      top: 52%;
      left: 40px;
      width: 70px;
      height: 70px;
      transform: translateY(-50%) skewX(-10deg);
      display: grid;
      place-items: center;
      padding: 7px;

      div {
        @include round(10px);
        background-color: #4C077F;
        width: 80%;
        height: 10px;
      }

      &-shadow {
        @include round(16px);
        width: 70px;
        height: 70px;
        background-color: #FEA001;
        content: '';
        position: absolute;
        top: 52%;
        left: 28px;
        z-index: -2;
        transform: translateY(-50%) skewX(-10deg);
      }
    }
  }

  // Cooler
  &__cooler {
    background-color: #360183;
    width: 80%;
    height: 60px;
    border-bottom-left-radius: 70px;
    border-bottom-right-radius: 70px;
    position: absolute;
    top: 100%;
    right: 20px;
    z-index: 2;

    &__line-1 {
      @include round(20px);
      position: absolute;
      top: 10px;
      right: 30px;
      height: 22px;
      width: 100px;
      background-color: #854FCB;
    }
  }
}

.legs {
  position: relative;

  &__leg {
    position: absolute;
    width: 20px;
    height: 150px;
    z-index: 1;

    &::before {
      position: absolute;
      display: block;
      content: '';
      top: 0;
      left: 0;
      width: 20px;
      height: 162px;
      background-color: #2C0050;
      transform-origin: bottom center;
      transition: 1s;
    }


    &--left {
      left: 20%;
      div {
        left: 10px;
      }

      &::before {
        transform: rotate(15deg) scaleY(1.1);
      }
    }

    &--right {
      right: 20%;
      
      &::before {
        transform: rotate(-15deg) scaleY(1.1);
      }

      div {
        right: 10px;
      }
    }

    &__foot {
      @include round(20px);
      position: absolute;
      top: 100%;
      transform: translateX(-50%);
      left: 50%;
      background-color: #2C0050;
      width: 100px;
      height: 20px;

      &__line-1 {
        @include round(20px);
        position: absolute;
        top: 6px;
        height: 6px;
        width: 70%;
        background-color: #854FCB;
      }
    }
  }

  &__shadow {
    @include round();
    position: absolute;
    top: 150px;
    left: 0;
    width: 100%;
    height: 30px;
    background-color: #472572;
    transform: scale(1.2);
    animation: legs-shadow 2s alternate infinite;
  }
}

// Propellers
.propeller {
  position: absolute;
  bottom: -86px;
  left: -30px;
  z-index: 3;

  &--left {
    left: 220px;
    z-index: 0;
    opacity: .4;
  }

  &__front {
    @include round(50px);
    box-shadow: inset 0 -10px #E13349;
    background-color: #FD3F5B;
    width: 190px;
    height: 100px;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 14px;

    &__line-1 {
      @include round(10px);
      background-color: #FE8295;
      position: absolute;
      top: 7px;
      height: 8px;
      width: 77px;
      left: 34px;
    }

    &__fan-hole {
      @include round();
      @include box(80px);
      background-color: #4C077F;
      box-shadow: inset -16px 0px 0px 0 #841C62;
      display: grid;
      place-items: center;

      &__spinner {
        position: relative;
        animation: fans .7s forwards linear infinite;

        &:after {
          @include round();
          @include box(25px);
          content: '';
          display: block;
          background-color: #A5A1FE;
          box-shadow: 0 0 0px 4px #4C077F;
          position: relative;
        }

        & div {
          @include round(15px);
          background-color: #953BFE;
          position: absolute;
          width: 22px;
          height: 36px;
          top: 50%;
          left: 50%;
          transform-origin: top center;
        }

        &__line-1 {
          transform: translateX(-50%) rotate(180deg);
        }

        &__line-2 {
          transform: translateX(-50%) rotate(55deg);
        }

        &__line-3 {
          transform: translateX(-50%) rotate(-55deg);
        }
      }
    }

    &__bubble {
      @include round();
      @include box(16px);
      border: 2px solid #398DFE;
      background-color: #1459B6;
      position: absolute;
      top: 30px;
      right: 22px;
      animation: bubble 4s linear forwards infinite;
      opacity: 0;

      &::before {
        @include round();
        @include box(6px);
        content: '';
        background-color: #20E9FD;
        position: absolute;
        top: 0;
        right: 0;
      }

      &__2 {
        animation-delay: 1s;
      }

      &__3 {
        animation-delay: 2s;
      }

      &__2 {
        animation-delay: 3s;
      }
    }
  }

  &__middle {
    @include round(50px);
    background-color: #A02A7D;
    box-shadow: inset 14px 0px 0px 0 #841C62;
    width: 130px;
    right: 100px;
    height: 90px;
    position: absolute;
    top: 5px;
    left: -60px;
    z-index: 1;
  }

  &__back {
    @include round(50px);
    position: absolute;
    top: 0;
    left: -128px;
    box-shadow: inset 0 -10px #E13349;
    background-color: #FD3F5B;
    width: 160px;
    height: 100px;
  }
}

// Back
.back {
  @include round(300px);
  background-color: #A02A7D;
  position: absolute;
  top: 94px;
  right: 48%;
  width: 400px;
  height: 220px;
  box-shadow: inset 0 -37px #4C077F;

  &__line-1 {
    @include round(10px);
    background-color: #D857AD;
    position: absolute;
    top: 10px;
    height: 10px;
    width: 80px;
    left: 190px;
    transform: translateX(-50%);
  }

  &__antena-back {
    @include round(300px);
    background-color: #FD3F5B;
    box-shadow: inset 0 -37px #4C077F;
    position: absolute;
    top: -10px;
    right: 48%;
    width: 400px;
    height: 220px;
  }
}

// Antenna
.antenna {
  &__back {
    @include round(300px);
    background-color: #FD3F5B;
    box-shadow: inset 0 -37px #4C077F;
    position: absolute;
    top: 52px;
    right: 60%;
    width: 290px;
    height: 140px;

    &__line-1 {
      @include round(10px);
      background-color: #FE8295;
      position: absolute;
      top: 10px;
      height: 10px;
      width: 80px;
      left: 44px;
    }
  }

  &__top {
    @include round(40px);
    background-color: #A02A7D;
    position: absolute;
    top: -16px;
    right: 44%;
    width: 140px;
    height: 90px;
  }
}

// Lights
.light {
  @include round(50px);
  background-color: #FD3F5B;
  width: 200px;
  height: 80px;
  position: relative;
  display: flex;
  position: absolute;
  top: 20px;
  left: -64px;
  z-index: 1;

  &__line-1 {
    @include round(10px);
    background-color: #FE8295;
    position: absolute;
    top: 10px;
    height: 10px;
    width: 70px;
    left: 24px;
  }

  &__bulb {
    @include box(55px);
    @include round();
    background-color: #FEFEFE;
    box-shadow: inset 16px -14px #FEDE02;
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);

    &__beam {
      width: 0;
      height: 470px;
      border-top: 220px solid transparent;
      border-right: 660px solid #FEFEFE;
      border-bottom: 220px solid transparent;
      position: absolute;
      top: -205px;
      left: 25px;
      opacity: 0.2;
      transition: 1s;
      transform-origin: left center;
      animation: light-bulb-beam 2s ease-in-out alternate infinite;
    }
  }

  &--back {
    top: 5px;
    left: 119px;
    z-index: 0;

    .light__bulb__beam {
      border-right: 478px solid #FEFEFE;
      top: -190px;
      opacity: 0.1;
    }
  }
}

// Passenger
.passenger {
  @include round();
  @include box(110px);
  border: 10px solid #7D2AD6;
  background-color: #360183;
  box-shadow: 8px 8px 0 6px #4C077F;
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;

  &__person {
    background-color: #01E0C3;
    position: absolute;
    bottom: -8px;
    right: 24px;
    height: 80px;
    width: 40px;
    border-radius: 50px;
    z-index: 2;
    transition: .8s;

    &__body {
      content: "";
      width: 107px;
      height: 60px;
      position: absolute;
      top: 50%;
      left: 0;
      overflow: hidden;

      &::before {
        @include round();
        @include box(100px);
        background-color: #01927E;
        content: '';
        display: block;
        transform: translate(-60px, 10px);
        box-shadow: 0 0 0 28px #01E0C3;
      }
    }

    &__eye {
      @include box(12px);
      @include round();
      background-color: #FEFEFE;
      position: absolute;
      top: 12px;
      left: 50%;
      transform: translateX(-50%);

      &::before {
        @include box(inherit);
        @include round();
        content: '';
        display: block;
        position: absolute;
        background-color: #01E0C3;
        top: 100%;
        transform: translateY(-40%);
        transition: .8s;
      }
    }

    &__nose {
      position: absolute;
      right: 100%;
      top: 24px;
      width: 16px;
      height: 8px;
      background-color: #EF7E50;
      border-top-left-radius: 50px;
      border-bottom-left-radius: 50px;
    }
  }

  &__shadow {
    @include round();
    @include box(50px);
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #6835AC;
  }
}

// hover start animations

// hover top right
.hover-top-right {
  position: fixed;
  height: 50vh;
  width: 50vw;
  top: 0;
  right: 0;
  z-index: 1;

  &:hover {
    &~.kurzgesagt {
      .lights {
        .light {
          &__bulb__beam {
            animation: none;
            transform: rotate(-25deg);
          }
        }
      }

      .hull {
        transform: rotate(-15deg);

        &__person {
          &__eye {
            &::before {
              transform: translateY(0);
            }
          }
        }
      }
    }
  }
}

// hover bottom right
.hover-bottom-right {
  position: fixed;
  height: 50vh;
  width: 50vw;
  top: 50%;
  right: 0;
  z-index: 1;

  &:hover {
    &~.kurzgesagt {
      .lights {
        .light {
          &__bulb__beam {
            animation: none;
            transform: rotate(25deg);
          }
        }
      }

      .hull {
        transform: rotate(15deg);

        &__person {
          &__eye {
            &::before {
              transform: translateY(0);
            }
          }
        }
      }

    }
  }
}

// hover top left
.hover-top-left {
  position: fixed;
  height: 50vh;
  width: 50vw;
  top: 0;
  left: 0;
  z-index: 1;

  &:hover {
    &~.kurzgesagt {
      .passenger {
        &__person {
          transform: rotate(20deg);

          &__eye {
            &::before {
              transform: translateY(0);
            }
          }
        }
      }
    }
  }
}

// hover bottom left
.hover-bottom-left {
  position: fixed;
  height: 50vh;
  width: 50vw;
  bottom: 0;
  left: 0;
  z-index: 1;

  &:hover {
    &~.kurzgesagt {
      .passenger {
        &__person {
          transform: rotate(-20deg);

          &__eye {
            &::before {
              transform: translateY(0);
            }
          }
        }
      }
    }
  }
}

@keyframes fans {
  to {
    transform: rotate(360deg);
  }
}

@keyframes light-bulb-beam {
  from {
    transform: rotate(-6deg);
  }

  to {
    transform: rotate(6deg);
  }
}

@keyframes legs-shadow {
  to {
    transform: scale(1);
  }
}

@keyframes bubble {
  0% {
    tranfsorm: scale(.6);
  }

  25% {
    transform: translate(30px, 30px) scale(.8) rotate(30deg);
    opacity: 1;
  }

  50% {
    transform: translate(60px, 0) scale(1) rotate(-30deg);
  }

  75% {
    transform: translate(100px, 30px) scale(1.2) rotate(30deg);
    opacity: 1;
  }

  100% {
    transform: translate(140px, 0) scale(1.4) rotate(-30deg);
    opacity: 0;
  }
}
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.