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.

+ 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.

            
              <div class="vinyl-wrapper">
   <div class="vinyl"></div>
   <div class="record-sleeve"></div> 
</div>
            
          
!
            
               *,
 *: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);
   }
 }
            
          
!
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