cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

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 class="diamonds"></div>
<div class="concentric-circles"></div>
<div class="pattern"></div>
<div class="cube"></div>
<div class="solid"></div>
            
          
!
            
              html {
  height: 100%;
  width: 100%;
}

body {
  background-color: #000;
  width: 100%;
  height: 100%;
  margin: 0;
}

.diamonds {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  background-color: #fff;
  background-image: repeating-linear-gradient(135deg, transparent, #000 25%), repeating-linear-gradient(225deg, transparent, #000 25%), repeating-linear-gradient(90deg, transparent, gold 25%), repeating-linear-gradient(45deg, transparent, gold 25%), repeating-linear-gradient(260deg, transparent, #000 25%), repeating-linear-gradient(0deg, #000, #000 25%);
  background-size: 50% 50%;
  -webkit-animation: diamonds 4s 6s both infinite alternate;
  /* Safari 4+ */
  
  -moz-animation: diamonds 4s 6s both infinite alternate;
  /* Fx 5+ */
  
  -o-animation: diamonds 4s 6s both infinite alternate;
  /* Opera 12+ */
  
  animation: diamonds 4s 6s both infinite alternate;
  /* IE 10+, Fx 29+ */
}

.concentric-circles {
  z-index: 10;
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  background: repeating-radial-gradient( circle at 0 0, transparent, gold 3%), repeating-radial-gradient( circle at top right, transparent, gold 3%);
  -webkit-animation: diamonds 6s infinite both alternate;
  /* Safari 4+ */
  
  -moz-animation: diamonds 6s infinite both alternate;
  /* Fx 5+ */
  
  -o-animation: diamonds 6s infinite both alternate;
  /* Opera 12+ */
  
  animation: diamonds 6s infinite both alternate;
  /* IE 10+, Fx 29+ */
}

.pattern {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  background-image: repeating-linear-gradient(225deg, transparent, #000 25%), repeating-linear-gradient(45deg, transparent, gold 25%);
  background-size: 100% 100%;
  -webkit-animation: diamonds 8s 2s infinite both alternate;
  /* Safari 4+ */
  
  -moz-animation: diamonds 8s 2s infinite both alternate;
  /* Fx 5+ */
  
  -o-animation: diamonds 8s 2s infinite both alternate;
  /* Opera 12+ */
  
  animation: diamonds 8s 2s infinite both alternate;
  /* IE 10+, Fx 29+ */
}

.cube {
  position: absolute;
  z-index: 9;
  width: 100%;
  opacity: 0;
  height: 100%;
  background-color: #556;
  background-image: linear-gradient(30deg, gold 12%, transparent 12.5%, transparent 87%, gold 87.5%, gold), linear-gradient(150deg, gold 12%, transparent 12.5%, transparent 87%, gold 87.5%, gold), linear-gradient(30deg, gold 12%, transparent 12.5%, transparent 87%, gold 87.5%, gold), linear-gradient(150deg, gold 12%, transparent 12.5%, transparent 87%, gold 87.5%, gold);
  background-size: 80px 140px;
  background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
  -webkit-animation: cube 10s 10s infinite both alternate;
  /* Safari 4+ */
  
  -moz-animation: cube 10s 10s infinite both alternate;
  /* Fx 5+ */
  
  -o-animation: cube 10s 10s infinite both alternate;
  /* Opera 12+ */
  
  animation: cube 10s 10s infinite both alternate;
  /* IE 10+, Fx 29+ */
}

@-webkit-keyframes diamonds {
  to {
    opacity: 1;
  }
}

@-moz-keyframes diamonds {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@-o-keyframes diamonds {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes diamonds {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console