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

              
                <svg xmlns="http://www.w3.org/2000/svg" xml:lang="en"
    xmlns:xlink="http://www.w3.org/1999/xlink"
    viewBox="0 0 420 630" >
    <defs>
        <path d="M10,10  q50,25 100,0 t100,0 100,0 100,0" id="wave"/>
    </defs>
    <mask id="image-mask" maskUnits="userSpaceOnUse">
        <rect width="100%" height="100%" fill="white" />
        <image xlink:href="https://s3-us-west-2.amazonaws.com/s.cdpn.io/91525/walrus-carpenter-glass22.png"
               width="100%" height="100%"
               opacity="0.2"
               preserveAspectRatio="xMidYMax meet" />
    </mask>
    <rect width="100%" height="100%" fill="darkSlateGray" />
    <rect width="100%" height="100%"  fill="azure"
          mask="url(#image-mask)" />
    <g font-size="18px"
       font-family="Georgia, serif" 
       fill="midnightBlue">
<text transform="translate(0,25)"><textPath xlink:href="#wave" startOffset="0%">“The time has come,” the Walrus said,</textPath></text>
<text transform="translate(0,50)"><textPath xlink:href="#wave" startOffset="5%">“To talk of many things: </textPath></text>
<text transform="translate(0,75)"><textPath xlink:href="#wave" startOffset="0%">Of shoes—and ships—and sealing wax—</textPath></text>
<text transform="translate(0,100)"><textPath xlink:href="#wave" startOffset="5%">Of cabbages—and kings— </textPath></text>
<text transform="translate(0,125)"><textPath xlink:href="#wave" startOffset="0%">And why the sea is boiling hot— </textPath></text>
<text transform="translate(0,150)"><textPath xlink:href="#wave" startOffset="5%">And whether pigs have wings.”</textPath></text>

<text transform="translate(0,175)"><textPath xlink:href="#wave" startOffset="25%">“But wait a bit,” the Oysters cried,</textPath></text>
<text transform="translate(0,200)"><textPath xlink:href="#wave" startOffset="30%">“Before we have our chat;</textPath></text>
<text transform="translate(0,225)"><textPath xlink:href="#wave" startOffset="25%">For some of us are out of breath,</textPath></text>
<text transform="translate(0,250)"><textPath xlink:href="#wave" startOffset="30%">And all of us are fat!”</textPath></text>
<text transform="translate(0,275)"><textPath xlink:href="#wave" startOffset="25%">“No hurry!” said the Carpenter.</textPath></text>
<text transform="translate(0,300)"><textPath xlink:href="#wave" startOffset="30%">They thanked him much for that.</textPath></text>

<text transform="translate(0,325)"><textPath xlink:href="#wave" startOffset="0%">“A loaf of bread,” the Walrus said,</textPath></text>
<text transform="translate(0,350)"><textPath xlink:href="#wave" startOffset="5%">“Is what we chiefly need:</textPath></text>
<text transform="translate(0,375)"><textPath xlink:href="#wave" startOffset="0%">Pepper and vinegar besides</textPath></text>
<text transform="translate(0,400)"><textPath xlink:href="#wave" startOffset="5%">Are very good indeed—</textPath></text>
<text transform="translate(0,425)"><textPath xlink:href="#wave" startOffset="0%">Now if you're ready, Oysters dear,</textPath></text>
<text transform="translate(0,450)"><textPath xlink:href="#wave" startOffset="5%">We can begin to feed.”</textPath></text>

<text transform="translate(0,475)"><textPath xlink:href="#wave" startOffset="25%">“But not on us!” the Oysters cried,</textPath></text>
<text transform="translate(0,500)"><textPath xlink:href="#wave" startOffset="30%">Turning a little blue.</textPath></text>
<text transform="translate(0,525)"><textPath xlink:href="#wave" startOffset="25%">“After such kindness, that would be</textPath></text>
<text transform="translate(0,550)"><textPath xlink:href="#wave" startOffset="30%">A dismal thing to do!”</textPath></text>
<text transform="translate(0,575)"><textPath xlink:href="#wave" startOffset="25%">“The night is fine,” the Walrus said.</textPath></text>
<text transform="translate(0,600)"><textPath xlink:href="#wave" startOffset="30%">“Do you admire the view? …</textPath></text>
    </g>
</svg>
              
            
!

CSS

              
                body {
  height: 100vh; 
  padding: 0.5em 1em;
  background: #222;
}
svg {
  display: block; 
  width: 100%;
}
              
            
!

JS

              
                
              
            
!
999px

Console