Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

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

              
                <!-- CSS art code here -->
<div class="container">
  <!-- Base -->
  <div class="base"></div>
  <div class="start-stop-button"></div>
  <div class="power-knob"></div>

  <!-- Platter, record, spindle -->
  <div class="platter"></div>
  <div class="record"></div>
  <div class="record-center"></div>
  <div class="record-ring"></div>

  <!-- Pitch adjust slider -->
  <div class="slider"></div>

  <!-- Tone arm -->
  <div class="arm-base"></div>
  <div class="weight-arm"></div>
  <div class="weight"></div>
  <div class="tone-arm"></div>
  <div class="pivot-base"></div>
  <div class="pivot-mech"></div>
  <div class="headshell"></div>
</div>
              
            
!

CSS

              
                /* Base */
.base {
  width: 474px;
  height: 355px;
  background: white;
  position: absolute;
  left: 13px;
  top: 72px;
  border: solid 2px gray;
  border-radius: 5px;
}

.start-stop-button {
  width: 24px;
  height: 24px;
  background: lightgray;
  position: absolute;
  left: 36px;
  top: 91px;
  border: solid 4px gray;
  border-radius: 10%;
}

.power-knob {
  width: 33px;
  height: 33px;
  background: lightgray;
  position: absolute;
  left: 32px;
  top: 368px;
  border-radius: 50%;
  border: solid 4px gray;
}

.power-knob::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: gray;
  top: 4px;
  left: 12px;
}

/* Platter, record, spindle */
.platter {
  width: 303px;
  height: 303px;
  background: gray; /* or transparent */
  position: absolute;
  left: 44px;
  top: 83px;
  border-radius: 50%;
  border: solid 15px lightgray;
}

.record {
  position: absolute;
  width: 0;
  height: 0;
  border-top: 152px solid #555555;
  border-right: 152px solid #444444;
  border-bottom: 152px solid #555555;
  border-left: 152px solid #444444;
  border-radius: 50%;
  left: 59px;
  top: 98px;
}

/* First ring */
.record-ring {
  width: 191px;
  height: 191px;
  background: transparent;
  position: absolute;
  left: 112px;
  top: 151px;
  border-radius: 50%;
  border: solid 3px black;
}

/* Second ring*/
.record-ring::before {
  content: "";
  width: 245px;
  height: 245px;
  background: transparent;
  position: absolute;
  left: -30px;
  top: -30px;
  border-radius: 50%;
  border: solid 3px black;
}

.record-center {
  width: 104px;
  height: 104px;
  background: orangered;
  position: absolute;
  left: 139px;
  top: 178px;
  border-radius: 50%;
  border: solid 20px black;
}

/* Spindle */
.record-center::before {
  content: "";
  position: absolute;
  width: 12.5px;
  height: 12.5px;
  border-radius: 50%;
  background: white;
  top: 46px;
  left: 45px;
}

/* Pitch adjust slider */
.slider {
  width: 30px;
  height: 156px;
  background: gray;
  position: absolute;
  left: 432px;
  top: 250px;
  border-radius: 5px;
}

/* Slider rail */
.slider::before {
  content: "";
  width: 6px;
  height: 127px;
  background: black;
  position: absolute;
  left: 12px;
  top: 14px;
}

/* Slider cap */
.slider::after {
  content: "";
  width: 14px;
  height: 14.5px;
  background: lightgray;
  position: absolute;
  left: 3px;
  top: 33px;
  border: solid 5px white;
  border-radius: 15%;
}

/* Tone arm */
.arm-base {
  width: 79px;
  height: 79px;
  background: black;
  position: absolute;
  left: 372px;
  top: 108px;
  border-radius: 50%;
}

.arm-base::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: lightgray;
  top: 52px;
  left: 56px;
}

.pivot-base {
  width: 40px;
  height: 40px;
  background: lightgray;
  position: absolute;
  left: 392px;
  top: 127px;
  border-radius: 50%;
}

.pivot-mech {
  width: 14px;
  height: 40px;
  background: white;
  position: absolute;
  left: 412px;
  top: 117px;
  transform: rotate(-44deg);
  transform-origin: bottom left;
  border-radius: 15px 15px 30px 30px;
}

.weight-arm {
  width: 13px;
  height: 48px;
  background: darkgray;
  position: absolute;
  left: 412px;
  top: 82px;
  transform: rotate(20deg);
  transform-origin: bottom;
  border-radius: 4px 4px 0px 0px;
}

.weight {
  width: 27px;
  height: 35px;
  background: dimgray;
  position: absolute;
  left: 408px;
  top: 87px;
  transform: rotate(20deg);
  transform-origin: bottom;
  border-radius: 4px;
}

.weight::before {
  content: "";
  width: 27px;
  height: 12px;
  background: lightgray;
  position: absolute;
  left: 0px;
  top: 9px;
}

/* Tone arm */
.tone-arm {
  width: 14px;
  height: 159px;
  background: darkgray;
  position: absolute;
  left: 406px;
  top: 165px;
  border-radius: 0px 0px 2px 0px;
}

.tone-arm::before {
  content: "";
  width: 14px;
  height: 60px;
  background: darkgray;
  position: absolute;
  left: 5px;
  top: 152px;
  transform: rotate(38deg);
  transform-origin: top;
  border-radius: 0px 9px 0px 0px;
}

.headshell {
  width: 22px;
  height: 40px;
  background: black;
  position: absolute;
  left: 345px;
  top: 350px;
  transform: rotate(44deg);
  transform-origin: bottom;
  border-radius: 30px 30px 15px 15px;
}

.headshell::after {
  content: "";
  width: 17px;
  height: 5px;
  background: gray;
  position: absolute;
  left: 22px;
  top: 17px;
  transform: rotate(0deg);
  transform-origin: bottom;
  border-radius: 0px 5px 5px 0px;
}

/* Center image */
body {
  margin: 0;
  padding: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Container */
.container {
  width: 500px;
  height: 500px;
  /*  border: 5px solid lightgray; 
  background: royalblue; */
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

              
            
!

JS

              
                
              
            
!
999px

Console