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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

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 class="wrapper">
  <svg class="left" width="250" height="500" viewBox="0 0 250 500" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
    <path d="M250,-0L250,10.652C228.26,17.372 208.13,29.387 189.604,46.698C143.127,90.128 101.602,135.082 65.029,181.559C28.457,228.036 26.171,276.8 58.172,327.849C90.173,378.898 131.698,423.851 182.747,462.709C204.345,479.15 226.763,489.453 250,493.619L250,500L0,500L0,-0L250,-0Z" />
  </svg>

  <svg class="right" width="250" height="500" viewBox="0 0 250 500" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
    <g transform="matrix(1,0,0,1,-250,0)">
      <path d="M250,-0L500,-0L500,500L250,500L250,493.619C281.68,499.298 314.883,493.567 349.608,476.424C409.8,446.709 444.468,401.755 453.611,341.563C462.754,281.371 465.992,217.941 463.325,151.273C460.659,84.604 425.991,39.651 359.323,16.412C319.228,2.436 282.785,0.517 250,10.652L250,-0Z" />
    </g>
  </svg>

  <p>
    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam a congue quam. Aliquam rutrum auctor ex id auctor. Maecenas vestibulum vitae lectus sed suscipit. Sed sagittis nisl non lorem fermentum, non luctus libero sagittis. Curabitur nec erat pharetra, consequat tellus vel, pharetra tortor. Donec lacinia suscipit accumsan. Nulla malesuada varius varius. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vivamus gravida scelerisque lectus, vel cursus nisi pulvinar at. Fusce vitae velit nulla. Nulla id lectus ac erat malesuada dapibus sed ac dui. Fusce convallis in sem non blandit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam sit amet lacus porttitor, semper tellus ornare, molestie nibh. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Nullam varius, nisi sit amet feugiat faucibus, risus velit scelerisque magna, ut condimentum neque sapien sit amet ligula. Proin id lectus metus. Aenean et hendrerit arcu. Duis eu lorem tincidunt, tincidunt mauris sit amet, dignissim tellus. Sed hendrerit ut ante mollis mollis. Cras vitae massa est. Morbi sed vestibulum sapien. Mauris nibh libero, interdum et enim vitae, efficitur tincidunt ligula. Suspendisse id vestibulum tellus. Curabitur eu elit ac dolor scelerisque ultrices vel at augue. Nullam ornare efficitur nunc id volutpat. Nunc sit amet est eget dolor placerat pulvinar nec a diam. Suspendisse tempor rutrum elit et imperdiet. Donec eu libero ornare, consectetur enim ac, auctor nibh. Nullam venenatis eget dui nec egestas. Nulla facilisis semper lorem, et hendrerit sem pretium sed. Pellentesque metus lorem, lacinia id sem id, aliquam dapibus purus. Sed ut laoreet orci. Vestibulum sit amet convallis nunc, vitae accumsan felis. Nulla facilisis dolor a ante feugiat, in tempor lectus ultricies. Curabitur justo ante, mollis sed venenatis quis, euismod ut est. Cras nec felis eu sem mollis egestas. Nunc sit amet porta elit. Donec vitae pulvinar augue. Donec placerat pulvinar luctus. Mauris vel lacinia tortor.
  </p>
</div>
              
            
!

CSS

              
                .wrapper {
  width: 500px;
  height: 500px;
  margin: 0 auto;
  overflow: hidden;
}

.wrapper:hover svg {
  visibility: visible;
}

svg {
  width: 250px;
  height: auto;
  visibility: hidden;
}

p {
  hyphens: auto;
  font-size: 12px;
  display: block;
  text-align: justify;
  font-family: sans-serif;
}

.left {
  float: left;
  shape-outside: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8' standalone='no'%3F%3E%3C!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3E%3Csvg width='100%25' height='100%25' viewBox='0 0 250 500' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;'%3E%3Cpath d='M250,-0L250,10.652C228.26,17.372 208.13,29.387 189.604,46.698C143.127,90.128 101.602,135.082 65.029,181.559C28.457,228.036 26.171,276.8 58.172,327.849C90.173,378.898 131.698,423.851 182.747,462.709C204.345,479.15 226.763,489.453 250,493.619L250,500L0,500L0,-0L250,-0Z'/%3E%3C/svg%3E%0A");
}

.right {
  float: right;
  shape-outside: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8' standalone='no'%3F%3E%3C!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3E%3Csvg width='100%25' height='100%25' viewBox='0 0 250 500' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' xml:space='preserve' xmlns:serif='http://www.serif.com/' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;'%3E%3Cg transform='matrix(1,0,0,1,-250,0)'%3E%3Cpath d='M250,-0L500,-0L500,500L250,500L250,493.619C281.68,499.298 314.883,493.567 349.608,476.424C409.8,446.709 444.468,401.755 453.611,341.563C462.754,281.371 465.992,217.941 463.325,151.273C460.659,84.604 425.991,39.651 359.323,16.412C319.228,2.436 282.785,0.517 250,10.652L250,-0Z'/%3E%3C/g%3E%3C/svg%3E%0A");
}

              
            
!

JS

              
                
              
            
!
999px

Console