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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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="cassette"></div>
              
            
!

CSS

              
                body{
  background: #ccc;
}

.cassette{
  width: 350px;
  height: 200px;
  background: white;
  border-radius: 5px;
  margin: 0 auto;
  position: relative;
  box-shadow: 
    1px 1px #111,
    2px 2px #111,
    3px 3px #111,
    5px 5px 9px #999;
  background-image:
    linear-gradient(-58deg, 
      rgba(255,255,255,0.05) 43%, 
      rgba(255,255,255,0.08) 33%,
      transparent 70%),
    
    radial-gradient(
      ellipse 12px 12px 
      at 5% 9%, 
      #eee 50%, transparent 50%),
    radial-gradient(
      ellipse 12px 12px 
      at 95% 9%, 
      #eee 50%, transparent 50%),
    radial-gradient(
      ellipse 12px 12px 
      at 5% 91%, 
      #eee 50%, transparent 50%),
    radial-gradient(
      ellipse 12px 12px 
      at 95% 91%, 
      #eee 50%, transparent 50%),
    
    radial-gradient(
      ellipse 15px 15px 
      at 30% 91%, 
      #eee 50%, transparent 50%),
    radial-gradient(
      ellipse 15px 15px 
      at 70% 91%, 
      #eee 50%, transparent 50%),
    radial-gradient(
      ellipse 10px 10px 
      at 62% 87%, 
      #eee 50%, transparent 50%),
    radial-gradient(
      ellipse 10px 10px 
      at 38% 87%, 
      #eee 50%, transparent 50%),
    
    linear-gradient(to left, #222 4%, transparent 1%),
    linear-gradient(to right, #222 4%, transparent 1%),
    linear-gradient(to top, #222 28%, transparent 5%),
    linear-gradient(to bottom, #222 9%, transparent 5%),
    
    linear-gradient(135deg, #222 12%, transparent 5%),
    linear-gradient(-135deg, #222 12%, transparent 5%),
    
    linear-gradient(to top, #ddd 35%, transparent 1%),
    linear-gradient(to bottom, #fff 29%, transparent 1%),
    radial-gradient(
      ellipse 60px 70px 
      at 75% 47%, 
      #222 50%, transparent 50%),
    radial-gradient(
      ellipse 60px 70px 
      at 27% 47%, 
      #222 50%, transparent 50%),
    radial-gradient(
      ellipse 200px 120px 
      at 50% 47%, 
      #222 50%, transparent 50%),
    
    linear-gradient(to top, #ddd 39%, transparent 5%),
    linear-gradient(to top, #BF4D28 47%, transparent 5%),
    linear-gradient(to top, #E6AC27 55%, transparent 5%),
    linear-gradient(to top, #80BCA3 63%, transparent 5%);
}
.cassette:before, .cassette:after{
  content: '';
  position: absolute;
  background: #fff;
  height: 50px;
  width: 50px;
  border-radius: 100%;
  top: 69px;
  animation: 4s spin-me-right-round linear infinite;
  background-image:
    radial-gradient(
      ellipse 10px 10px 
      at 50% 5%, 
      #999 50%, transparent 50%),
    radial-gradient(
      ellipse 10px 10px 
      at 72% 12%, 
      #999 50%, transparent 50%),
    radial-gradient(
      ellipse 10px 10px 
      at 87% 29%, 
      #999 50%, transparent 50%),
    
    radial-gradient(
      ellipse 10px 10px 
      at 94% 50%, 
      #999 50%, transparent 50%),
    radial-gradient(
      ellipse 10px 10px 
      at 87% 71%, 
      #999 50%, transparent 50%),
    radial-gradient(
      ellipse 10px 10px 
      at 72% 88%, 
      #999 50%, transparent 50%),
    
    radial-gradient(
      ellipse 10px 10px 
      at 50% 95%, 
      #999 50%, transparent 50%),
    radial-gradient(
      ellipse 10px 10px 
      at 13% 71%, 
      #999 50%, transparent 50%),
    radial-gradient(
      ellipse 10px 10px 
      at 28% 88%, 
      #999 50%, transparent 50%),
    
    
    radial-gradient(
      ellipse 10px 10px 
      at 4% 50%, 
      #999 50%, transparent 50%),
    radial-gradient(
      ellipse 10px 10px 
      at 28% 12%, 
      #999 50%, transparent 50%),
    radial-gradient(
      ellipse 10px 10px 
      at 13% 29%, 
      #999 50%, transparent 50%);
}

.cassette:before{
  left: 74px;
}

.cassette:after{
  right: 68px;
}

@keyframes spin-me-right-round{
  0%{
    transform: rotate(0deg);
  }
  100%{
    transform: rotate(360deg);
  }
}
              
            
!

JS

              
                /* looks best in Chrome, as all things do */
              
            
!
999px

Console