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.

              <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>
              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');
🕑 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.