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 viewBox="0 0 500 70">
  <defs>
    <linearGradient id="rainbow" x1="0" x2="0" y1="0" y2="100%" gradientUnits="userSpaceOnUse" >
      <stop stop-color="#FF5B99" offset="0%"/>
      <stop stop-color="#FF5447" offset="20%"/>
      <stop stop-color="#FF7B21" offset="40%"/>
      <stop stop-color="#EAFC37" offset="60%"/>
      <stop stop-color="#4FCB6B" offset="80%"/>
      <stop stop-color="#51F7FE" offset="100%"/> 
    </linearGradient>
  </defs>
 <g id="letter" fill="url(#rainbow)">
    <path d="M2 18.8h34v12H24.6v36.7H13.4V30.8H2v-12z"/>
    <path d="M41.7 18.8h10v18c1.4-2 2.8-3.3 4.1-4.1a9 9 0 0 1 4.8-1.3c2.7 0 4.9 1.2 6.4 3.4A18 18 0 0 1 69.4 45v22.4h-10V48c0-2.2-.4-3.8-1-4.7a3 3 0 0 0-2.6-1.4c-1.2 0-2.2.6-3 1.9-.7 1.2-1 3.4-1 6.6v17H41.6V18.8z"/>
    <path d="M104.5 53.2H84.3c.2 2.2.7 3.8 1.3 4.8 1 1.6 2.3 2.3 3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zm11.2-29h4.7l3-.6a3 3 0 0 0 1.8-1.6c.5-.8.7-1.7.7-2.8 0-1.5-.4-2.8-1.1-3.6-.7-.8-2.1-1.3-4.2-1.3H180v10z"/>
    <path d="M208 18.8h29.9v10.4H219V37h17.4v10h-17.4v9.5h19.3v11h-30.5V18.9z"/>
    <path d="M244.4 18.8h30v10.4h-18.8V37H273v10h-17.4v9.5h19.3v11h-30.5V18.9z"/>
    <path d="M281 18.8h10.4l13.6 27v-27h10.5v48.7H305l-13.5-26.7v26.7H281V18.8z"/>
    <path d="M337.9 51.4l10.6-1c.2 2.4.7 4.2 1.4 5.4 1.1 2 2.8 3 5 3 1.5 0 2.7-.6 3.6-1.6.9-1 1.3-2.2 1.3-3.5 0-1.2-.4-2.4-1.2-3.4-.9-1-2.8-1.9-5.8-2.8a21.8 21.8 0 0 1-10.4-5.9 14 14 0 0 1-3.2-9.4c0-2.5.5-4.8 1.6-7 1.1-2.3 2.7-4 4.9-5.3 2.1-1.3 5.1-1.9 8.9-1.9 4.6 0 8.1 1.2 10.5 3.5 2.5 2.3 4 6 4.4 11l-10.6.8a8.8 8.8 0 0 0-1.7-4.8c-1-1-2.2-1.4-3.7-1.4-1.3 0-2.3.3-3 1a4 4 0 0 0-1 2.8c0 .7.3 1.4.9 2 .5.7 1.7 1.3 3.7 1.9 4.9 1.4 8.4 2.8 10.5 4.2 2.1 1.5 3.6 3.3 4.6 5.4a19.4 19.4 0 0 1-.5 15.8c-1.3 2.7-3 4.7-5.3 6-2.4 1.4-5.3 2-8.8 2-6.1 0-10.4-1.5-12.7-4.7a22.3 22.3 0 0 1-4-12.1z"/>
    <path d="M374.9 43.2c0-8 1.6-14.1 4.9-18.6 3.3-4.4 7.9-6.6 13.7-6.6 6 0 10.7 2.2 14 6.5a30 30 0 0 1 4.8 18.3c0 5.7-.7 10.3-2.1 14a19 19 0 0 1-6.2 8.5c-2.7 2-6 3-10 3-4.1 0-7.5-.9-10.1-2.6a18.3 18.3 0 0 1-6.5-8.3 35.4 35.4 0 0 1-2.5-14.2zm11.1 0c0 5 .7 8.5 2 10.6a6.3 6.3 0 0 0 5.6 3.2c2.4 0 4.3-1 5.6-3.1 1.3-2.1 2-5.9 2-11.3 0-4.6-.7-8-2.1-10a6.4 6.4 0 0 0-11 0c-1.4 2.1-2 5.7-2 10.6z"/>
    <path d="M442.4 47.6l9.8 4c-.7 3.7-1.7 6.7-3.1 9.2a15 15 0 0 1-5.3 5.6 15.3 15.3 0 0 1-8 2c-3.9 0-7.1-.8-9.6-2.4a18.2 18.2 0 0 1-6.4-8.1A35.2 35.2 0 0 1 417 43a31 31 0 0 1 4.8-18.5c3.2-4.3 7.7-6.5 13.5-6.5a15 15 0 0 1 10.7 3.7 23 23 0 0 1 5.9 11.4l-10 3c-.3-1.5-.6-2.6-1-3.3-.6-1.1-1.4-2-2.3-2.6-.9-.6-1.9-1-3-1-2.6 0-4.5 1.4-5.8 4.2-1 2-1.6 5.2-1.6 9.5 0 5.4.6 9.1 1.9 11.1 1.2 2 2.9 3 5 3 2.2 0 3.8-.8 5-2.4 1-1.6 1.8-4 2.3-7z"/>
    <path d="M457.7 18.8h11.1v18.4l11.8-18.4h14.8l-13.2 18.4L496 67.5h-13.8l-7.6-20-5.8 8v12h-11.1V18.8z"/>
  </g>
</svg>

<svg viewBox="0 0 500 70">
  <defs>
    <linearGradient id="rainbow" x1="0" x2="0" y1="0" y2="100%" gradientUnits="userSpaceOnUse" >
      <stop stop-color="#FF5B99" offset="0%"/>
      <stop stop-color="#FF5447" offset="20%"/>
      <stop stop-color="#FF7B21" offset="40%"/>
      <stop stop-color="#EAFC37" offset="60%"/>
      <stop stop-color="#4FCB6B" offset="80%"/>
      <stop stop-color="#51F7FE" offset="100%"/> 
    </linearGradient>
  </defs>
 <g id="letter02" fill="url(#rainbow)">
    <path d="M2 18.8h34v12H24.6v36.7H13.4V30.8H2v-12z"/>
    <path d="M41.7 18.8h10v18c1.4-2 2.8-3.3 4.1-4.1a9 9 0 0 1 4.8-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4.5a17 17 0 0 1 1.6 7.8c0 2.7-.4 5-1.3 7-.8 2-2 3.6-3.5 4.8-1 .7-2.2 1.4-3.9 1.9 1.3.6 2.3 1.2 3 1.8.3.4 1 1.2 1.7 2.5l1.6 3 5.4 14.2h-12.7l-6-14.9c-.7-2-1.4-3.2-2-3.8a3.9 3.9 0 0 0-2.7-1h-1v19.7h-11.2zm11.2-29h4.7l3-.6a3 3 0 0 0 1.8-1.6c.5-.8.7-1.7.7-2.8 0-1.5-.4-2.8-1.1-3.6-.7-.8-2.1-1.3-4.2-1.3H180v10z"/>
    <path d="M208 18.8h29.9v10.4H219V37h17.4v10h-17.4v9.5h19.3v11h-30.5V18.9z"/>
    <path d="M244.4 18.8h30v10.4h-18.8V37H273v10h-17.4v9.5h19.3v11h-30.5V18.9z"/>
    <path d="M281 18.8h10.4l13.6 27v-27h10.5v48.7H305l-13.5-26.7v26.7H281V18.8z"/>
    <path d="M337.9 51.4l10.6-1c.2 2.4.7 4.2 1.4 5.4 1.1 2 2.8 3 5 3 1.5 0 2.7-.6 3.6-1.6.9-1 1.3-2.2 1.3-3.5 0-1.2-.4-2.4-1.2-3.4-.9-1-2.8-1.9-5.8-2.8a21.8 21.8 0 0 1-10.4-5.9 14 14 0 0 1-3.2-9.4c0-2.5.5-4.8 1.6-7 1.1-2.3 2.7-4 4.9-5.3 2.1-1.3 5.1-1.9 8.9-1.9 4.6 0 8.1 1.2 10.5 3.5 2.5 2.3 4 6 4.4 11l-10.6.8a8.8 8.8 0 0 0-1.7-4.8c-1-1-2.2-1.4-3.7-1.4-1.3 0-2.3.3-3 1a4 4 0 0 0-1 2.8c0 .7.3 1.4.9 2 .5.7 1.7 1.3 3.7 1.9 4.9 1.4 8.4 2.8 10.5 4.2 2.1 1.5 3.6 3.3 4.6 5.4a19.4 19.4 0 0 1-.5 15.8c-1.3 2.7-3 4.7-5.3 6-2.4 1.4-5.3 2-8.8 2-6.1 0-10.4-1.5-12.7-4.7a22.3 22.3 0 0 1-4-12.1z"/>
    <path d="M374.9 43.2c0-8 1.6-14.1 4.9-18.6 3.3-4.4 7.9-6.6 13.7-6.6 6 0 10.7 2.2 14 6.5a30 30 0 0 1 4.8 18.3c0 5.7-.7 10.3-2.1 14a19 19 0 0 1-6.2 8.5c-2.7 2-6 3-10 3-4.1 0-7.5-.9-10.1-2.6a18.3 18.3 0 0 1-6.5-8.3 35.4 35.4 0 0 1-2.5-14.2zm11.1 0c0 5 .7 8.5 2 10.6a6.3 6.3 0 0 0 5.6 3.2c2.4 0 4.3-1 5.6-3.1 1.3-2.1 2-5.9 2-11.3 0-4.6-.7-8-2.1-10a6.4 6.4 0 0 0-11 0c-1.4 2.1-2 5.7-2 10.6z"/>
    <path d="M442.4 47.6l9.8 4c-.7 3.7-1.7 6.7-3.1 9.2a15 15 0 0 1-5.3 5.6 15.3 15.3 0 0 1-8 2c-3.9 0-7.1-.8-9.6-2.4a18.2 18.2 0 0 1-6.4-8.1A35.2 35.2 0 0 1 417 43a31 31 0 0 1 4.8-18.5c3.2-4.3 7.7-6.5 13.5-6.5a15 15 0 0 1 10.7 3.7 23 23 0 0 1 5.9 11.4l-10 3c-.3-1.5-.6-2.6-1-3.3-.6-1.1-1.4-2-2.3-2.6-.9-.6-1.9-1-3-1-2.6 0-4.5 1.4-5.8 4.2-1 2-1.6 5.2-1.6 9.5 0 5.4.6 9.1 1.9 11.1 1.2 2 2.9 3 5 3 2.2 0 3.8-.8 5-2.4 1-1.6 1.8-4 2.3-7z"/>
    <path d="M457.7 18.8h11.1v18.4l11.8-18.4h14.8l-13.2 18.4L496 67.5h-13.8l-7.6-20-5.8 8v12h-11.1V18.8z"/>
  </g>
</svg>
              
            
!

CSS

              
                @import url(//fonts.googleapis.com/css?family=Oswald:700);

body {
  font-family: "Oswald", Impact, Charcoal, sans-serif;
  text-transform: uppercase;
  background: #000;
}

svg {
  max-height: 90vh;
  margin: 5vh auto;
  display: block;
}


              
            
!

JS

              
                
var action = new TimelineMax({repeat:3, repeatDelay:1})
.staggerFrom('#letter path', 0.7, {autoAlpha:0, scale:0, transformOrigin:'center', x:250, ease:Circ.easeInOut}, 0.1, "+=0");

// =========================
// with dynamic delay (index)

var letters = Array.from(document.querySelectorAll("#letter02 path"));

var action02 = new TimelineMax({repeat:3, repeatDelay:1});

letters.forEach((letter, i) => {
  action02.from(letter, i*0.02+0.05, {scale:0, transformOrigin:'center', x:250, ease:Circ.easeInOut})
});
              
            
!
999px

Console