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 id="lynskey">
  <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1000 586">
    <title>Lynskey 2015 Backroad Bike Technical Details</title>
    <circle cx="770" cy="401" r="172" />
    <text x="320" y="570">DTSwiss TK540/X.9 wheelset</text>
    <polygon points="256,29 443,29 443,60 357,101 266,65" />
    <text x="0" y="120">Selle Italia X1 Flow Saddle</text>
    <polygon points="646,133 367,159 245,350 283,409 390,434 413,379 456,370 500,400 677,207 684,229 697,217 669,133" />
    <text x="415" y="250">Titanium frame</text>
    <circle cx="225" cy="401" r="51" />
    <text x="320" y="570">SRAM Apex rear dérailleur</text>
  </svg>
</div>
              
            
!

CSS

              
                body {
  font-family: Avenir, Helvetica, sans-serif;
}

#lynskey circle, #lynskey polygon {
  fill: none;
  pointer-events: all;
}

#lynskey text {
  opacity: 0;
  transition: .3s;
  font-size: 24px;
}

#lynskey polygon:hover,
#lynskey circle:hover {
  cursor: pointer;
}

#lynskey polygon:hover + text,
#lynskey circle:hover + text, 
#lynskey circle:focus + text,
#lynskey polygon:focus + text
{
  opacity: 1;
}

@media all and (max-width: 500px) {
  #lynskey text {
    font-size: 28px;
  }
}
#lynskey { 
  width: 80%;
  margin: 0 auto;
  max-width: 1500px;
}

#lynskey svg {
	background-image: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/4273/lynskey-med.jpg');
  background-size: cover;
}

@media all and (min-width: 750px) {
	#lynskey svg {
		background-image: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/4273/lynskey-large.jpg');
	}
}
              
            
!

JS

              
                
              
            
!
999px

Console