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="vinyl-wrapper">
   <div class="vinyl"></div>
   <div class="record-sleeve"></div> 
</div>
              
            
!

CSS

              
                 *,
 *:before,
 *:after {
   box-sizing: border-box;
 }
 
 body {
   background: lightgrey;
 }
 
 .vinyl-wrapper {
   position: relative;
   display: block;
   margin: 150px;
   width: 200px;
   height: 200px;
   transform: rotateX(10deg) rotateZ(-20deg);
 }
 
 .record-sleeve {
   width: 200px;
   height: 200px;
   position: absolute;
   background: -webkit-radial-gradient(49% 50%, circle, transparent 27%, #8c737c 10%);
   background: -moz-radial-gradient(49% 50%, circle, transparent 27%, #8c737c 10%);
   background: radial-gradient(49% 50%, circle, transparent 27%, #8c737c 10%);
   border-radius: 2px;
   box-shadow: -3px 5px 10px -1px grey;
   z-index: 10;
 }
 
 .vinyl {
   position: absolute;
   -ms-transform: translate(69px);
   transform: translate(69px);
   top: 70px;
   background: #f7aac7;
   width: 58px;
   height: 60px;
   border-radius: 50%;
   border: solid #e7568d;
   border-width: 29px 0px;
   border-left: 0;
   animation: pull-out 1.3s 2s ease-out forwards, spin 1.3s 4s linear infinite;
   box-shadow: 0px 0px 3px #f7aac7, 0px 0px 0px 10px #ea6a9b, 0px 0px 15px #f7aac7, 0px 0px 0px 16px #000, 0px 0px 0px 17px #252424, 0px 0px 0px 18px #000, 0px 0px 0px 19px #313030, 0px 0px 0px 20px #000, 0px 0px 0px 21px #3a3838, 0px 0px 0px 22px #000, 0px 0px 0px 23px #2b2a2a, 0px 0px 0px 24px #000, 0px 0px 0px 25px #313030, 0px 0px 0px 26px #000, 0px 0px 0px 27px #313030, 0px 0px 0px 28px #000, 0px 0px 0px 29px #333333, 0px 0px 0px 30px #000, 0px 0px 0px 31px #333232, 0px 0px 0px 32px #000, 0px 0px 0px 33px #4c4a4a, 0px 0px 0px 34px #000, 0px 0px 0px 35px #2f2e2e, 0px 0px 0px 36px #000, 0px 0px 0px 37px #252424, 0px 0px 0px 38px #000, 0px 0px 0px 39px #2f2e2e, 0px 0px 0px 40px #000, 0px 0px 0px 41px #2f2e2e, 0px 0px 0px 42px #000, 0px 0px 0px 55px #2f2e2e, 0px 0px 0px 56px #000, 0px 0px 0px 57px #2f2e2e, 0px 0px 0px 58px #cecece, 0px 0px 0px 59px #2f2e2e;
 }
 
 .vinyl:before {
   content: "";
   position: absolute;
   width: 6px;
   height: 6px;
   background: white;
   top: calc(50% - 3px);
   left: calc(50% - 3px);
   border-radius: 50%;
 }
 
 @keyframes spin {
   0% {
     transform: rotate(0deg);
     left: 300px;
   }
   100% {
     transform: rotate(360deg);
     left: 300px;
   }
 }
 
 @keyframes pull-out {
   0% {
     transform: translateX(69px);
   }
   100% {
     transform: translateX(300px);
   }
 }
              
            
!

JS

              
                
              
            
!
999px

Console