css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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 Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <iframe width="300" height="24" src="https://www.youtube.com/embed/pLKeZukedZo?rel=0&autoplay=1&autohide=0" frameborder="0" allowfullscreen></iframe>

<div id="mixtape-vol-1">
  <div class="label">
    <p>Awesome Mix Vol. 1</p>
  </div>
  <div class="details"></div>
  
  <div class="tape-wheel left">
    <span></span>
    <span></span>
  </div>
  <div class="tape-wheel right">
    <span></span>
    <span></span>
  </div>
</div> 

<p>Turn on audio, 'cause it's a mixtape!</p>
            
          
!
            
              @import "compass/css3";

@import "https://fonts.googleapis.com/css?family=Kalam";

*,
*:before,
*:after {
  @include box-sizing(content-box); // Meh
}

html {
  background: #51cef5;
  height: 100%;
}

p {
  font-family: 'Kalam', cursive;
  text-align: center;
}

iframe {
  position: absolute;
  left: -9999px;
  visibility: hidden;
}

#mixtape-vol-1 {
  position: relative;
  display: block;
  
  width: 147px;
  height: 41px;
  
  margin: 50px auto;
  
  border: solid #131a1a;
  border-width: 61px 59px 66px 59px;
  border-radius: 6px;
  
  &:before,
  &:after {
    content: " ";
    position: absolute;
    z-index: 2;
    
    border-radius: 50%;
  }
  
  &:before {
    background: #0d0d0b;
    box-shadow: inset 0 0 0 3px #2c2c2c,
      244px 0 0 -3px #0d0d0b,
      244px 0 0 0 #2c2c2c,
      0 147px 0 -3px #0d0d0b,
      0 147px 0 0 #2c2c2c,
      244px 147px 0 -3px #0d0d0b,
      244px 147px 0 0 #2c2c2c;
    
    width: 11px;
    height: 11px;
    
    top: -56px;
    left: -54px;
  }
  
  &:after {
    background: #0d0d0b;
    box-shadow: inset 0 0 0 7px #636665,
      204px 0 0 -7px #0d0d0b,
      204px 0 0 0 #636665;
    
    width: 21px;
    height: 21px;
    
    top: 81px;
    left: -39px;
  }
  
  .label {
    position: absolute;
  
    width: 147px;
    height: 41px;
    
    top: -53px;
    left: -52px;
    
    border: solid #ddc997;
    border-width: 53px 52px 24px 52px;
    border-radius: 0 0 15px 15px;
    
    &:before,
    &:after {
      content: " ";
      position: absolute;
      z-index: 1;
      
      top: -53px;
      
      border: solid 10px transparent;
      border-top-color: #131a1a;
    }
    
    &:before {
      left: -52px;
      border-left-color: #131a1a;
    }
    
    &:after {
      right: -52px;
      border-right-color: #131a1a;
    }
    
    p {
      position: absolute;
      text-align: center;
      color: #136669;
      font-size: 17px;

      width: 147px;
      height: 41px;
      
      top: -19px;
      
      &:before,
      &:after {
        content: " ";
        position: absolute;
        z-index: 1;
      }
      
      &:before {
        background: #ca3618;
        
        width: 52px;
        height: 1px;
        
        top: 19px;
        left: -52px;
        
        box-shadow:
          0 7px 0 0 #ca3618,
          0 14px 0 0 #ca3618,
          0 20px 0 0 #ca3618,
          0 21px 0 0 #ca3618,
          0 22px 0 0 #ca3618,
          0 23px 0 0 #ca3618,
          0 27px 0 0 #ca3618,
          0 28px 0 0 #ca3618,
          0 29px 0 0 #ca3618,
          0 30px 0 0 #ca3618,
          0 34px 0 0 #ca3618,
          0 35px 0 0 #ca3618,
          0 36px 0 0 #ca3618,
          0 37px 0 0 #ca3618,
          
          199px 0 0 0 #ca3618,
          199px 7px 0 0 #ca3618,
          199px 14px 0 0 #ca3618,
          199px 20px 0 0 #ca3618,
          199px 21px 0 0 #ca3618,
          199px 22px 0 0 #ca3618,
          199px 23px 0 0 #ca3618,
          199px 27px 0 0 #ca3618,
          199px 28px 0 0 #ca3618,
          199px 29px 0 0 #ca3618,
          199px 30px 0 0 #ca3618,
          199px 34px 0 0 #ca3618,
          199px 35px 0 0 #ca3618,
          199px 36px 0 0 #ca3618,
          199px 37px 0 0 #ca3618;
      }
      
      &:after {
        width: 251px;
        height: 3px;
        
        left: -52px;
        bottom: -44px;
        
        border-top: solid 7px #ca3617;
        border-bottom: solid 15px #ca3617;
        border-radius: 0 0 15px 15px;
      }
    }
  }
  
  .details {
    &,
    &:before {
      position: absolute;

      border-top: solid 0 transparent;
      border-left: solid 11px transparent;
      border-right: solid 11px transparent;
      border-bottom: solid 36px #010000;
    }
    
    & {
      width: 160px;
      height: 0;

      top: 71px;
      left: -18px;
    }
    
    &:before {
      content: " ";
      z-index: 1;
      
      width: 152px;
      height: 0;

      top: 3px;
      left: -7px;
      
      border-bottom: solid 33px #191917;
    }
    
    &:after {
      content: " ";
      position: absolute;
      background: #232929;
      z-index: 2;
      
      width: 265px;
      height: 1px;

      top: 25px;
      left: -52px;

      box-shadow: 0 -5px 0 0 #232929,
        0 -10px 0 0 #232929,
        0 -15px 0 0 #232929,
        0 -20px 0 0 #232929,
        0 -25px 0 0 #232929;
    }
  }
  
  .tape-wheel {
    @include animation(tape-wheel 6s linear infinite);
    
    position: absolute;
    background: #e6e6e6;
    z-index: -1;
    
    width: 6px;
    height: 6px;
    
    top: 17px;
    
    border: solid 1px #3b3b3b;
    border-radius: 50%;
    
    &.left {
      left: 18px; 
      box-shadow: 0 0 0 1px #e6e6e6,
        0 0 0 14px #3b3b3b,
        0 0 0 15px #e6e6e6,
        0 0 0 16px #3b3b3b,
        0 0 0 17px #c8c8c8,
        0 0 0 19px #3b3b3b,
        0 0 0 22px #c8c8c8,
        0 0 0 25px #3b3b3b,
        0 0 0 29px #c8c8c8,
        0 0 0 47px #3b3b3b;
    }
    
    &.right {
      right: 18px; 
      box-shadow: 0 0 0 1px #e6e6e6,
        0 0 0 14px #3b3b3b,
        0 0 0 15px #e6e6e6,
        0 0 0 16px #3b3b3b,
        0 0 0 17px #c8c8c8,
        0 0 0 19px #3b3b3b,
        0 0 0 22px #c8c8c8,
        0 0 0 25px #3b3b3b,
        0 0 0 29px #c8c8c8,
        0 0 0 37px #3b3b3b;
    }
    
    span {
      &,
      &:before,
      &:after {
        position: absolute;
        
        width: 4px;
        height: 28px;
        
        border-top: solid 4px #e6e6e6;
        border-bottom: solid 4px #e6e6e6;
      }
      
      & {  
        top: -15px;
        left: 1px;
      }
      
      &:before {
        content: " ";
        
        transform: rotateZ(120deg);
        transform-origin: center center 0;
        
        top: -4px;
        left: 0;
      }
      
      &:after {
        content: " ";
        
        transform: rotateZ(240deg);
        transform-origin: center center 0;
        
        top: -4px;
        left: 0;
      }
    }
    
    span + span {
      &,
      &:before,
      &:after {
        width: 5px;
        height: 48px;
        
        border-top: solid 6px #c8c8c8;
        border-bottom: solid 6px #c8c8c8;
      }
      
      & {  
        top: -28px;
        left: 0;
      }
      
      &:before {
        content: " ";
        
        transform: rotateZ(120deg);
        transform-origin: center center 0;
        
        top: -6px;
        left: 0;
      }
      
      &:after {
        content: " ";
        
        transform: rotateZ(240deg);
        transform-origin: center center 0;
        
        top: -6px;
        left: 0;
      }
    }
  }
}

@include keyframes(tape-wheel) {
  to {
    transform: rotateZ(360deg);
  }
}
            
          
!
            
              /* 
Awesome Mix Vol. 1
Made by Kevin Jannis (@kevinjannis)
View more at www.janniskev.in 

Inspired by: https://dribbble.com/shots/1946311-Guardians-of-the-Galaxy
*/
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console