Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ 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

Save Automatically?

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="container">
    <div class="objects">
      <div class="objects_computer"></div>
      <div class="objects_table"></div>
      <div class="objects_cup"></div>
      <div class="smoke"></div>
      <div class="objects_chair"></div>
    </div>
    <div class="box">
      <div class="box_1">
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
      </div>
      <div class="box_2">
        <div></div>
        <div></div>
        <div></div>
      </div>
      <div class="box_3"></div>
    </div>
  </div>
  <div class="footer">
    <div class="title mod">
      Happy Programmer's Day <;>
    </div>
    <div class="title">
      Made with ♥ by kibum
      <div class="sub">
        <a href="https://www.instagram.com/kibum.png/" target=”_blank”>instagram: kibum.png</a>
        <span>|</span>
        <a href="https://twitter.com/kibumLaura" target=”_blank”> twitter: kibumLaura</a>
      </div>
    </div>
  </div>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Amatic+SC');

//*~ Variables Color
$background: #222;
$box-bg: rgba(99,102,115,0.709804);
$pink:   #e67da4;
$pink-shadow: #f36b9d;
$grey-l: darkgrey;
$grey:  #bfbfbf;
$table: #63321f;
$table-shadow: #582714;
$chair: #3c3c3c;
$chair-shadow: #424242;

//*~ Mixins
@mixin box_1 ($top, $transform, $shadow) {
  width: 1.8rem;
  height: 0.3rem;
  background: $pink;
  position: absolute;
  border-radius: 1rem;
  top: 1.2rem;
  left: 1.3rem;
}

//*~ Background + Footer
.footer {
  bottom: 0;
  color: white;
  top: 35rem;
  font-size: 2rem;

  .title {
    font-family: 'Amatic SC';
    text-align: center;
  }

  .mod {
    color: #dc8e3e;
  }

  .sub {
    display: flex;
    justify-content: space-around;
    font-size: 1rem;
    font-family: 'Amatic SC';
    a {
      color: pink;
      text-decoration: none;
      &:hover {
        color: white;
      }
    }
  }
}

body {
  width: 99%;
  height: 36rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: $background;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
  top: 0;
  bottom: 0;
  width: 26rem;
  border-radius: 26rem;
  overflow: hidden;
  height: 26rem;
  position: relative;
}

//*~ Objects + Code Lines + Smoke
.objects {
  &_computer {
    position: absolute;
    width: 7rem;
    height: 5.5rem;
    background: $grey;
    left: 3.8rem;
    top: 14.8rem;
    transform: skew(17deg, 0deg);
    border-radius: 0.6rem 0.6rem 0 0;
    box-shadow: inset -6px 1px $grey-l;
    &:after {
      content: '';
      position: absolute;
      width: 2rem;
      height: 0.5rem;
      background: $grey-l;
      top: 5.1rem;
      left: 7rem;
      transform: skew(0deg, 2deg);
    }
  }

  &_table {
    position: absolute;
    width: 22rem;
    top: 20.4rem;
    height: 1.4rem;
    background: $table;
    left: 2rem;
    box-shadow: 0px -3px $table-shadow;
    &:before {
      content: '';
      width: 19rem;
      height: 1.2rem;
      position: absolute;
      background: $table-shadow;
      border-radius: 0 1rem;
      top: 1.4rem;
      left: 3rem;
      z-index: 1;
    }
  }

  &_cup {
    position: absolute;
    width: 2.4rem;
    top: 17.2rem;
    background: $pink;
    left: 16.8rem;
    height: 3rem;
    border-radius: 0.3rem 0.3rem 0 0;
    z-index: 55;
    box-shadow: -2px 0px $pink-shadow;
    &:after {
      content: '';
      width: 2rem;
      height: 2rem;
      background: $pink;
      position: absolute;
      top: 0.7rem;
      left: 0.4rem;
      border: none;
      border-radius: 0;
      z-index: 5;
    }
    &:before {
      content: '';
      position: absolute;
      width: 1rem;
      height: 1.3rem;
      border: 4px solid $pink-shadow;
      left: 1.6rem;
      top: 0.8rem;
      border-radius: 1rem;
      z-index: 1;
    }
  }

  &_chair {
    height: 10.2rem;
    position: absolute;
    width: 9.1rem;
    background: $chair;
    left: 16.6rem;
    top: 10rem;
    border-radius: 2rem 2rem 0 0;
    transform: skew(-9deg, 0deg);
    box-shadow: inset -9px 5px $chair-shadow;
  }
}

.box {
  &_1 {
    position: absolute;
    width: 5.4rem;
    height: 6.8rem;
    left: 1rem;
    top: 6.7rem;
    background-color:$box-bg;
    border-radius: 0.6rem;
    box-shadow: 1px 3px 5px #00000052;
    animation: float 2s infinite;

    div {
      background: $pink;
      position: absolute;
      border-radius: 1rem;
    }

    :nth-child(1) {
      width: 1.8rem;
      height: 0.3rem;
      top: 1.2rem;
      left: 1.3rem;
    }

    :nth-child(2) {
      width: 1rem;
      height: 0.3rem;
      top: 1.2rem;
      left: 3.3rem;
    }

    :nth-child(3) {
      width: 1.1rem;
      height: 0.3rem;
      top: 2rem;
      left: 2.1rem;
    }

    :nth-child(4) {
      width: 1.4rem;
      height: 0.3rem;
      top: 2rem;
      left: 3.3rem;
    }

    :nth-child(5) {
      width: 0.7rem;
      height: 0.3rem;
      top: 2.7rem;
      left: 2.7rem;
      box-shadow: 1rem 0px $pink, 1.8rem 0px $pink, -0.5rem 11px $pink;
    }

    :nth-child(6) {
      width: 1.8rem;
      height: 0.3rem;
      top: 4.1rem;
      left: 1.2rem;
      box-shadow: 1rem 22px $pink, 0rem 43px $pink;
    }

    :nth-child(7) {
      width: 0.8rem;
      height: 0.3rem;
      top: 4.8rem;
      left: 1.7rem;
      box-shadow: 0rem 22px $pink;
    }
  }

  &_2 {
    position: absolute;
    width: 6.4rem;
    height: 4.4rem;
    left: 7.3rem;
    top: 1.7rem;
    background-color:$box-bg;
    border-radius: 0.6rem;
    box-shadow: 1px 3px 5px #00000052;
    animation: float2 2s 1s infinite;

    div {
      position: absolute;
      border-radius: 1rem;
      background: $pink;
    }

    :nth-child(1) {
      transform: rotate(45deg);
      width: 0.2rem;
      height: 0.6rem;
      left: 0.8rem;
      top: -0.4rem;
      box-shadow: 1.1rem 0.5rem $pink, 2.5rem -0.5rem $pink, 6rem 0.5rem $pink;
    }

    :nth-child(2) {
      transform: rotate(133deg);
      width: 0.2rem;
      height: 0.6rem;
      left: 0.8rem;
      top: 0rem;
      box-shadow: 0.5rem -1.1rem $pink, -0.9rem -2rem $pink, 0.2rem -5.5rem $pink;;
    }

    &:after {
      content: '';
      width: 1rem;
      height: 0.2rem;
      background: $pink;
      position: absolute;
      border-radius: 6rem;
      top: 2.4rem;
      left: 2.2rem;
    }

    &:before {
      content: '';
      width: 0.8rem;
      height: 0.2rem;
      background: $pink;
      position: absolute;
      border-radius: 6rem;
      top: 1.1rem;
      left: 2rem;
      transform: rotate(-68deg);
      box-shadow: -2.2rem 2.8rem $pink;
    }
  }

  &_3 {
    position: absolute;
    width: 4.9rem;
    height: 4.2rem;
    left: 7.3rem;
    top: 7.4rem;
    background-color:$box-bg;
    border-radius: 0.6rem;
    box-shadow: 1px 3px 5px #00000052;
    animation: float3 2.5s infinite;

    &:after {
      content: '';
      position: absolute;
      background: $pink;
      width: 0.8rem;
      height: .2rem;
      transform: rotate(-64deg);
      border-radius: 5rem;
      top: 0.8rem;
      left: 0.5rem;
      box-shadow: 0.2rem 0.5rem $pink;
    }
  }
}

.smoke {
  width: 70px;
  height: 100px;
  background: none;
  position: absolute;
  left: 18rem;
  margin-left: -40px;
  z-index: 3;
  top: 13.8rem;
  animation:bk 11s infinite;

  &:after {
    content: '';
    width: 100px;
    height: 100px;
    background: none;
    position: absolute;
    background-image: -webkit-radial-gradient(42% 48%, ellipse, rgba(255,255,255,0.2), transparent 25%),-webkit-radial-gradient(35% 70%, ellipse, rgba(255,255,255,0.2), transparent 15%),-webkit-radial-gradient(42% 61%, ellipse, rgba(255,255,255,0.2), transparent 10%);
    animation: smoke 2s 1s infinite;
    transform: rotate(18deg);
  }
}

//*~ Animation
@keyframes float {
  0% { top: 6.7rem; }
  50% { top: 7rem;}
  100%{ top: 6.7rem }
}

@keyframes float2 {
  0% { top: 1.7rem; }
  50% { top: 2rem;}
  100%{ top: 1.7rem }
}

@keyframes float3 {
  0% { top: 7.4rem; }
  50% { top: 7.7rem;}
  100%{ top: 7.4rem }
}

@keyframes smoke {
  0%{ background-position:0 0; opacity:0; }
  15%, 85% { opacity:1;}
  100%{ background-position:-20px -25px, -5px -25px, 0px -25px, 0px -25px; opacity:0;}
}

              
            
!

JS

              
                //*~ github: lauragrassig
//*~ twitter: @kibumLaura
//*~ instagram: @kibum.png
              
            
!
999px

Console