cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

Code Indentation

     

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.

            
              <html>
  <head>
    <link href="https://fonts.googleapis.com/css?family=Rubik:500,700" rel="stylesheet"> 
  </head>
  <body>
      <div class="container">
        <h1>CUSTOM<BR>
          FIT FOR GIRLS.<BR>
          TROUBLE<BR>
          FOR GUYS.</h1>
        <div class="red-column"></div>
        <div class="yellow-column"></div>
        <div class="green-column"></div>
        <div class="blue-column"></div>
        <img class="shoe" src="https://s3.amazonaws.com/GrayHulkBucket/nikeAirSpan6.png">
        <div class="footer">
          JOIN THE MEN VS WOMEN CHALLENGE<BR>
          AT NIKEPLUS.COM
        </div>
      </div>
   </body>
</html>
  
            
          
!
            
              body {
  background-color: #ddd;
  min-width: 800px;
  width: 800px;
  margin: auto;
}
.container {
  display: grid;
  background-color: #000;
  padding-left: 50px;
  padding-right: 50px;
  padding-top: 20px;
  grid-template-columns: 5% 1fr 1fr 1fr 1fr;
  grid-template-rows: 90vh 1fr;
  align-items: end;
  grid-column-gap: 3%;
  width: auto;
  height: 100vh;
}

.container h1 {
  color: #fff;
  grid-column: 1 / 6;
  grid-row: 1 / 2;
  z-index: 5;
  font-family: 'Rubik', san-serif;
  font-size: 80px;
  line-height: 88%;
  align-self: start;
  padding-top: 10px;
}

@keyframes redThump {
  0% {
    height: 40%;
  }
  30% {
    height: 50%;
  }
  80% {
    height: 38%;
  }
  90% {
    height: 40%;
  }
  100% {
    height: 42%;
  }
}

@keyframes yellowThump {
  0% {
    height: 70%;
  }
  35% {
    height: 85%;
  }
  
  75% {
    height: 75%;
  }
  100% {
    height: 68%;
  }
}

@keyframes greenThump {
  0% {
    height: 90%;
  }
  20% {
    height: 100%;
  }
  70% {
    height: 85%;
  }
  100% {
    height: 90%;
  }
}

@keyframes blueThump {
  0% {
    height: 100%;
  }
  60% {
    height: 115%;
  }
  85% {
    height: 95%;
  }
  100% {
    height: 100%;
  }
}

.red-column {
  height: 40%;
  background-color: #ea272b;
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  border-radius: 200px;
  box-shadow: 0 0 20px 0px #ea272b, 0 0 1200px 0px #ea272b;
  animation: redThump var(--animation-time) ease alternate infinite;
}

.yellow-column {
  height:70%;
  background-color: yellow;
  grid-column: 3 / 4;
  grid-row: 1 / 2;
  border-radius: 200px;
  align-self: end;
  box-shadow: 0 0 20px 0px yellow, 0 0 120px 0px yellow;
  animation: yellowThump var(--animation-time) ease alternate infinite;
}

.green-column {
  height: 90%;
  background-color: #6fbf5e;
  grid-column: 4 / 5;
  grid-row: 1 / 2;
  border-radius: 200px;
  box-shadow: 0 0 20px 0px #6fbf5e, 0 0 120px 0px #6fbf5e;
  animation: greenThump var(--animation-time) ease alternate infinite;
}

.blue-column {
  height: 100%;
  background-color: #01b4ee;
  grid-column: 5 / 6;
  grid-row: 1 / 2;
  border-radius: 200px;
  box-shadow: 0 0 20px 0px #01b4ee, 0 0 120px 0px #01b4ee;
  animation: blueThump var(--animation-time) ease alternate infinite;
}

.shoe {
  grid-column: 2 / 6;
  grid-row: 1 / 2;
  transform: rotate(110deg) scaleY(-1);
  width: 90vh;
  height: auto;
  justify-self: center;
  align-self: center;
  filter: brightness(80%) contrast(120%);
}

.footer {
  color: #fff;
  grid-column: 1 / 6;
  grid-row: 2 / 3;
  z-index: 5;
  font-family: 'Rubik', san-serif;
  padding-top: 20px;
  align-self: start;
}
            
          
!
            
              var redTime = Math.max(Math.random()+.1, .25);
var red = document.querySelector('.red-column');
red.style.setProperty('--animation-time', redTime + 's');

var yellowTime =  Math.max(Math.random(), .25);
var yellow = document.querySelector('.yellow-column');
yellow.style.setProperty('--animation-time', yellowTime + 's');

var greenTime = Math.max(Math.random(), .25);
var green = document.querySelector('.green-column');
green.style.setProperty('--animation-time', greenTime + 's');

var blueTime = Math.max(Math.random(), .25);
var blue = document.querySelector('.blue-column');
blue.style.setProperty('--animation-time', blueTime + 's');
            
          
!
999px
Loading ..................

Console