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 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="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
Loading ..................

Console