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.

            
              body {
  --outer-circle: #fedb32;
  --middle-circle: #fedf3d;
  --inner-circle: #fee350;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
  background: radial-gradient(circle, var(--inner-circle) 35%, var(--middle-circle) 35%, var(--middle-circle) 70%, var(--outer-circle) 35%);
}

div, div::before, div::after {
  position: relative;
  box-sizing: border-box;
}

div {
  width: 350px;
  height: 470px;
  background-repeat: no-repeat;  
  /* colors */
  --tail-piece: #2e3038;
  --violin-body: #c54754;
  --violin-body-outline: #ae3e4b;  
  --violin-strings-gray: #b5b5b7;
  --scroll-light-red: #b13942;
  --scroll-shadow-red: #912f37;
  --tuning-peg-detail: #2c272b;
  --tuning-peg-circle: #4b474a;
  --tuning-peg-branch: #75595c;
  --fingerboard: #484447;
  --bridge: #fecbbe;
  --bridge-shadow: #b4404b;
  --fine-tuner-light: #5a5a5c;
  --fine-tuner-dark: #252526;
  /* create the violin side shapes */
  --edge-left: radial-gradient(ellipse, var(--inner-circle) 17px, transparent 17px), radial-gradient(circle, var(--inner-circle) 21px, transparent 21px), linear-gradient( var(--violin-body) 35px, transparent 35px);
  --edge-right: radial-gradient(ellipse, var(--inner-circle) 17px, transparent 17px), radial-gradient(circle, var(--inner-circle) 20px, transparent 20px), linear-gradient( var(--violin-body) 35px, transparent 35px);
  /* violin body */  
  --violin-body-main: radial-gradient(circle, var(--violin-body) 63px, transparent 63px), radial-gradient(circle, var(--inner-circle) 2px, transparent 2px), radial-gradient(circle, var(--inner-circle) 2px, transparent 2px), radial-gradient(circle, var(--inner-circle) 2px, transparent 2px), radial-gradient(circle, var(--inner-circle) 2px, transparent 2px), var(--edge-left), var(--edge-right), radial-gradient(circle, var(--violin-body) 55px, transparent 55px), linear-gradient( var(--violin-body) 45px, transparent 45px);
  /* violin left edge */
  --edge-left-outline: linear-gradient( var(--violin-body-outline) 35px, transparent 35px);
  /* violin right edge */
  --edge-right-outline: linear-gradient( var(--violin-body-outline) 35px, transparent 35px);
  /* violin body */  
  --violin-body-main-outline: radial-gradient(circle, var(--violin-body-outline) 66px, transparent 66px), radial-gradient(circle, var(--violin-body-outline) 55px, transparent 55px);
  /* violin side strings */
  --violin-strings: linear-gradient(var(--violin-strings-gray) 100px, transparent 1000px), linear-gradient(var(--violin-strings-gray) 100px, transparent 1000px);

  background-image: linear-gradient(var(--scroll-light-red) 31px, transparent 31px), linear-gradient(var(--scroll-light-red) 31px, transparent 31px), radial-gradient(circle, var(--scroll-light-red) 9px, transparent 9px), radial-gradient(circle, var(--scroll-shadow-red) 11px, transparent 11px), radial-gradient(circle, var(--violin-body) 14px, transparent 14px), radial-gradient(ellipse, var(--scroll-shadow-red) 16px, transparent 16px), linear-gradient(var(--tuning-peg-detail) 10px, transparent 10px), linear-gradient(var(--tuning-peg-detail) 10px, transparent 10px), linear-gradient(var(--tuning-peg-detail) 10px, transparent 10px), linear-gradient(var(--tuning-peg-detail) 10px, transparent 10px), radial-gradient(circle, var(--tuning-peg-circle) 5px, transparent 5px), radial-gradient(circle, var(--tuning-peg-circle) 5px, transparent 5px), radial-gradient(circle, var(--tuning-peg-circle) 5px, transparent 5px), radial-gradient(circle, var(--tuning-peg-circle) 5px, transparent 5px), linear-gradient(var(--tuning-peg-branch) 125px, transparent 100px), linear-gradient(var(--tuning-peg-branch) 125px, transparent 100px), linear-gradient(var(--tuning-peg-branch) 125px, transparent 100px), linear-gradient(var(--tuning-peg-branch) 125px, transparent 100px), linear-gradient(var(--violin-strings-gray) 100px, transparent 1000px), linear-gradient(var(--violin-strings-gray) 100px, transparent 1000px), linear-gradient(var(--fingerboard) 125px, transparent 100px), linear-gradient(var(--violin-body) 125px, transparent 100px), var(--violin-strings), linear-gradient(var(--fingerboard) 800px, transparent 100px), radial-gradient(ellipse, var(--bridge) 15px, transparent 17px), radial-gradient(ellipse, var(--bridge-shadow) 15px, transparent 17px), radial-gradient(circle, var(--violin-body) 1px, transparent 2px), radial-gradient(circle, var(--violin-body) 1px, transparent 2px), radial-gradient(circle, var(--violin-body) 1px, transparent 2px), radial-gradient(circle, var(--violin-body) 1px, transparent 2px), radial-gradient(circle, var(--fine-tuner-light) .5px, var(--fine-tuner-dark) 4px, transparent 1px), radial-gradient(circle, var(--fine-tuner-light) .5px, var(--fine-tuner-dark) 4px, transparent 1px), radial-gradient(circle, var(--fine-tuner-light) .5px, var(--fine-tuner-dark) 4px, transparent 1px), radial-gradient(circle, var(--fine-tuner-light) .5px, var(--fine-tuner-dark) 4px, transparent 1px), radial-gradient(circle, var(--tail-piece) 25px, transparent 25px), linear-gradient(var(--tail-piece) 100px, transparent 100px), var(--violin-body-main), var(--violin-body-main-outline);
  
  background-size: 25px 2px, 2px 14px, 12px 22px, 24px 15px, 30px 8px, 34px 6px, 2px 7px, 2px 7px, 2px 7px, 2px 7px, 10px 10px, 10px 10px, 10px 10px, 10px 10px, 8px 5px, 8px 5px, 8px 5px, 8px 5px, 1.5px 259px, 1.5px 259px, 15px 25px, 25px 30px, /* violin strings */1.5px 255px, 1.5px 255px, 25px 175px, 30px 4px, 30px 12px, 7px 7px, 7px 7px, 7px 7px, 7px 7px, 8px 8px, 8px 8px, 8px 8px, 8px 8px, 56px 38px, 15px 57px, /* main body */320px 170px, 7px 7px, 7px 7px, 7px 7px, 7px 7px, 60px 48px, 42px 69px, 40px 70px, 60px 48px, 42px 70px, 40px 70px, 325px 159px, 85px 108px, /* outline */345px 180px, 335px 159px;
  
  background-position: 160px 70px, 171px 54px, 166px 52px, 160px 58px, 157px 60px, 155px 59px, 189px 73px, 189px 86px, 155px 92px, 155px 79px, 191px 85px, 191px 71px, 145px 78px, 145px 91px, 185px 74px, 185px 87px, 152px 80px, 152px 93px, 176px 76px, 168px 76px, 165px 75px, 160px 70px, /* violin strings */183px 80px, 161px 80px, 160px 80px, 158px 280px, 158px 280px, 157.5px 332px, 165.5px 332px, 173.5px 332px, 181px 332px, 155px 340px, 164px 340px, 173px 340px, 182px 340px, 144px 328px, 164px 353px,/* main body */ 11px 260px, 119px 240px, 125px 280px, 219px 242px, 212px 280px, 78px 215px, 101px 230px, 120px 220px, 207px 215px, 200px 230px, 187px 220px, 10px 140px, 129px 255px, /* outline */ -1px 255px, 5px 135px;
}

div::before, div::after {
  content: '';
  position: absolute;
  --f-holes: #912f37;  
}

div::after {
  content: "~";
  font-size: 65px;
  height: 110px;
  width: 69px;
  left: 118px;
  top: 253px;
  color: var(--f-holes);
  transform: scaleX(-1) rotate(74deg);
}

div::before {
  content: "~";
  font-size: 65px;
  height: 110px;
  width: 70px;
  left: 158px;
  top: 252.5px;
  color: var(--f-holes);
  transform: rotate(72deg);
}


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

Console