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="header"></div>
<div class="background">
<div class="shaboo"></div>
  
<div class="slidy">
<div class="sld_l sld_1"><div class="fog"></div></div>
<div class="sld_r sld_2"><div class="fog"></div></div>
<div class="sld_l sld_3"><div class="fog"></div></div>
  <div class="sld_r sld_4"><div class="man_r"><div class="fog"></div></div></div>
<div class="sld_l sld_5"><div class="fog"></div></div>
<div class="sld_r sld_6"><div class="fog"></div></div>
<div class="sld_l sld_7"><div class="fog"></div></div>
<div class="sld_r sld_8"><div class="fog"></div></div>
  <div class="sld_l sld_9"><div class="fog"></div><div class="man"></div></div>
<div class="sld_r sld_10"><div class="fog"></div></div>
  <div class="sld_l sld_11"><div class="fog"></div><div class="man delay"></div></div>
<div class="sld_r sld_12"><div class="fog"></div></div>
<div class="sld_l sld_13"><div class="fog"></div></div>
<div class="sld_r sld_14"><div class="fog"></div></div>
<div class="sld_l sld_15"><div class="fog"></div></div>
<div class="sld_r sld_16"><div class="fog"></div></div>
<div class="sld_l sld_17"><div class="fog"></div></div>
<div class="sld_r sld_18"><div class="fog"></div></div>
<div class="sld_l sld_19"><div class="fog"></div></div>
<div class="sld_r sld_20"><div class="fog"></div></div>
</div>
</div>




<!-- <svg width="406.44px" height="393.33px" enable-background="new 0 0 406.444 393.334" version="1.1" viewBox="0 0 406.444 393.334" xml:space="preserve" xmlns="http://www.w3.org/2000/svg">
<polygon points="196.56 4.583 205.56 4.583 209.91 101.44 398.94 67.886 401.46 75.911 216.33 116.14 221.05 152.56 339.6 358.91 329.43 363.15 202.56 163.14 85.253 366.67 73.679 361.15 182.75 152.79 186 115.47 5.133 81.803 7.646 75.911 193.44 100.12" fill="#fff"/>
</svg> --!>
              
            
!

CSS

              
                body, html{
  margin: 0;
  display:block;
  width:100%;
  height:100%;
}
.header {
  display:block;
  background-color:black;
  height:50px;
  width:100%;
}
.background{
  display:block;
  width:100%;
  height:100%;
}
.shaboo{
  position:absolute;
  width:100%;
  height:100%;
  background-color: white;
  z-index:100;
  opacity:0.0;
   /* visibility:hidden;*/
}

.slidy {
  position:relative;
  width:100%;
  height:100%;
  background-color: darkgrey;
  overflow: hidden;
  z-index:-1;
}
.sld_l {
  position:absolute;
  left:-10%;
  width:90%;
  height:20%;
  transform: rotate(15deg);
}
.sld_r {
  position:absolute;
  right:-20%;
  width:90%;
  height:20%;
  transform: rotate(-15deg);
  margin-top: calc(var(--mrright) * 1 * 1%);
}
.fog {
   position:absolute;
  width:100%;
  height:100%;
  background-color:#78d1ff;
  opacity: 0.0;
}

.man {
    position: absolute;
    top:-25%;
    background-size: contain;
    background-repeat: no-repeat;
    width:0;
    height: 50%;
    padding-left: 15%;
    background-image: url(https://imgur.com/mzUcpAH.png);
    animation: left 60s infinite, wobble 1.0s infinite;
    transform-origin: 9% 100%;
}
.man_r {
    position: absolute;
    top:-25%;
    background-size: contain;
    background-repeat: no-repeat;
    width:0;
    height: 50%;
    padding-left: 15%;
    background-image: url(https://imgur.com/mzUcpAH.png);
    animation: right 60s infinite, wobble 1.0s infinite;
    transform-origin: 9% 100%;
}
.delay { 
animation-delay:8.2s;
}

@keyframes left {
      from {
      left: -10%;
     }
  to {
    left:110%;
  }}

@keyframes right {
      from {
      right: -10%;
     }
  to {
    right:110%;
  }}

   @keyframes wobble {
   
     0% { -webkit-transform: rotate(-15deg) translateY(0%);}
      12% { -webkit-transform: rotate(0deg) translateY(-20%);}
     25% { -webkit-transform: rotate(15deg) translateY(0%);}
      37% { -webkit-transform: rotate(0deg) translateY(-20%);}
     50% { -webkit-transform: rotate(-15deg) translateY(0%);}
      62% { -webkit-transform: rotate(0deg) translateY(-20%);}
     75% { -webkit-transform: rotate(15deg) translateY(0%);}
      87% { -webkit-transform: rotate(0deg) translateY(-20%);}
     100% { -webkit-transform: rotate(-15deg) translateY(0%);}
         }
 


.sld_1, .sld_2 {top: calc(var(--top) * 1 * -1%);}
.sld_3, .sld_4 {top: 0%;}
.sld_5, .sld_6 {top: calc(var(--top) * 1 * 1%);}
.sld_7, .sld_8 {top: calc(var(--top) * 2 * 1%);}
.sld_9, .sld_10  {top: calc(var(--top) * 3 * 1%);}
.sld_11, .sld_12 {top: calc(var(--top) * 4 * 1%);}
.sld_13, .sld_14 {top: calc(var(--top) * 5 * 1%);}
.sld_15, .sld_16 {top: calc(var(--top) * 6 * 1%);}
.sld_17, .sld_18 {top: calc(var(--top) * 7 * 1%);}
.sld_19, .sld_20 {top: calc(var(--top) * 8 * 1%);}

.sld_1{z-index: var(--z1);}
.sld_2{z-index: var(--z2);}
.sld_3{z-index: var(--z3);}
.sld_4{z-index: var(--z4);}
.sld_5{z-index: var(--z5);}
.sld_6{z-index: var(--z6);}
.sld_7{z-index: var(--z7);}
.sld_8{z-index: var(--z8);}
.sld_9{z-index: var(--z9);}
.sld_10{z-index: var(--z10);}
.sld_11{z-index: var(--z11);}
.sld_12{z-index: var(--z12);}
.sld_13{z-index: var(--z13);}
.sld_14{z-index: var(--z14);}
.sld_15{z-index: var(--z15);}
.sld_16{z-index: var(--z16);}
.sld_17{z-index: var(--z17);}
.sld_18{z-index: var(--z18);}

:root {
  --mrright: 0;
  --top: 15;
  
  --z1: 1; 
  --z2: 2;
  --z3: 3;
  --z4: 4;
  --z5: 5;
  --z6: 6;
  --z7: 7;
  --z8: 8;
  --z9: 9;
  --z10: 10;
  --z11: 11;
  --z12: 12;
  --z13: 13;
  --z14: 14;
  --z15: 15;
  --z16: 16;
  --z17: 17;
  --z18: 18;

}

.sld_1{background-color: #52b4e7;}
.sld_2{background-color: #52e795;}
.sld_3{background-color: #fff200;}
.sld_4{background-color: #f26522;}
.sld_5{background-color: #f9ad81;}
.sld_6{background-color: #39b54a;}
.sld_7{background-color: #197b30;}
.sld_8{background-color: #a3d39c;}
.sld_9{background-color: #3cb878;}
.sld_10{background-color: #123456;}
.sld_11{background-color: #f7941d;}
.sld_12{background-color: #a2f71d;}
.sld_13{background-color: #eb4c27;}
.sld_14{background-color: #00bff3;}
.sld_15{background-color: #c7fbee;}
.sld_16{background-color: #39b54a;}
.sld_17{background-color: #f9ad81;}
.sld_18{background-color: #fff200;}

@media screen and (max-width: 920px) {
   :root {--mrright: 5} 
}
@media screen and (max-width: 768px) {
  :root {--mrright: 10}
  .sld_10{background-color: red;}
}
@media screen and (max-width: 500px) {
   :root {--mrright: 15} 
}
              
            
!

JS

              
                console.log("hi");
var style = getComputedStyle(document.body);
// console.log(style.getPropertyValue('--top1'));
// console.log(style.getPropertyValue('--topSpacing'));

              
            
!
999px

Console