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.

            
              <div></div>
<div></div>
<div></div>
<div></div>
<div></div>
            
          
!
            
              html, body { 
  width: 855px; 
  height: 855px; 
  perspective: 1580px; 
  margin: 0;
}
div {
  position: absolute;
  height: 100%; 
  width: 100%;
  background: rgb(178, 35, 35);
  background-size: 120px 120px;
  background-image: linear-gradient(90deg,
    #FFF 0%,#FFF 25%,#650D0D 25%,#650D0D 50%,#FFF 50%,#FFF 75%,#650D0D 75%,#650D0D 100%);
  box-shadow: inset 0 0 70px rgb(20,20,20);
}
div:nth-of-type(1) {
  transform-origin: center center;
  transform: scale(0.65);
  animation: center 0.5s linear infinite;
}
div:nth-of-type(2) {
  transform-origin: top center;
  transform: rotateX(-90deg);
  animation: center 0.5s linear infinite;
}
div:nth-of-type(3) {
  transform-origin: right center;
  transform: rotateY(-90deg);  
  animation: side 0.5s linear reverse infinite;
}
div:nth-of-type(4) {
  transform-origin: bottom center;
  transform: rotateX(90deg);
  animation: center 0.5s linear infinite;
}
div:nth-of-type(5) {
  transform-origin: left center;
  transform: rotateY(90deg);
  animation: side 0.5s linear infinite;
}
div:nth-of-type(2n + 3) { 
  background-image: linear-gradient(0deg,
    #FFF 0%,#FFF 25%,#650D0D 25%,#650D0D 50%,#FFF 50%,#FFF 75%,#650D0D 75%,#650D0D 100%);
}
@keyframes center { to { background-position: -60px 0px; } }
@keyframes side { to { background-position: 0px 60px; } }
            
          
!
            
              // For more, check out zachsaucier.com
// Posted for the purpose of a CSS-Tricks article
            
          
!
999px
Loading ..................

Console