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

              
                <?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg width="100%" height="100%" viewBox="0 0 700 243" 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-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;"><rect id="Artboard2" x="0" y="0" width="699.75" height="242.25" style="fill:none;"/>

<g id="gradienty"><path id="curl5" d="M618,119.625c0,0 32.304,19.5 61.5,-19.875" style="fill:none;stroke:url(#_Linear1);stroke-width:18px;"/><path id="o" d="M599.177,110.744c22.683,4.945 36.005,32.32 29.731,61.094c-6.273,28.773 -29.781,48.119 -52.463,43.174c-22.683,-4.946 -36.004,-32.321 -29.731,-61.094c6.273,-28.774 29.781,-48.119 52.463,-43.174Z" style="fill:none;stroke:url(#_Linear2);stroke-width:18px;"/><path id="curl4" d="M452.25,174c2.178,7.623 24.294,88.779 92.25,-7.5" style="fill:none;stroke:url(#_Linear3);stroke-width:18px;"/><path id="curl3" d="M349.5,175.5c0,0 27.75,78 102,3.75" style="fill:none;stroke:url(#_Linear4);stroke-width:18px;"/><path id="l2" d="M451.528,177.543c-0,-0 35.136,-26.018 55.908,-103.199c7.018,-26.08 0.961,-50.417 -13.518,-54.314c-14.48,-3.897 -31.933,14.113 -38.952,40.193c-20.771,77.182 -3.438,117.32 -3.438,117.32Z" style="fill:none;stroke:url(#_Linear5);stroke-width:18px;"/><path id="l1" d="M349.632,176.022c-0,-0 35.137,-26.017 55.908,-103.199c7.019,-26.08 0.961,-50.417 -13.518,-54.314c-14.479,-3.897 -31.933,14.114 -38.952,40.194c-20.771,77.181 -3.438,117.319 -3.438,117.319Z" style="fill:none;stroke:url(#_Linear6);stroke-width:18px;"/><path id="curl2" d="M237.75,200.25c0,-0 42,46.5 113.25,-24" style="fill:none;stroke:url(#_Linear7);stroke-width:18px;"/><path id="curl1" d="M167.25,210c0,-0 29.25,11.25 70.5,-7.5" style="fill:none;stroke:url(#_Linear8);stroke-width:18px;"/><path id="e" d="M239.557,200.574c0,-0 36.301,-22.374 43.243,-51.698c3.836,-16.204 -6.204,-32.473 -22.407,-36.309c-16.204,-3.836 -32.473,6.204 -36.309,22.408c-6.943,29.324 15.473,65.599 15.473,65.599Z" style="fill:none;stroke:url(#_Linear9);stroke-width:18px;"/><path id="h2" d="M82.345,206.257c14.995,-57.872 45.062,-100.221 67.101,-94.511c22.039,5.711 26.049,39.632 11.054,97.504" style="fill:none;stroke:url(#_Linear10);stroke-width:18px;"/><path id="h" d="M9.73,209.23c0,0 112.249,-42.394 138.749,-142.736c1.784,-6.757 3.18,-13.776 4.126,-21.064c0.516,-14.657 -4.621,-23.66 -14.906,-27.517c-12.708,-2.292 -21.963,2.58 -27.922,14.288c-20.252,39.957 -23.149,115.745 -28.171,181.839" style="fill:none;stroke:url(#_Linear11);stroke-width:18px;"/></g><defs><linearGradient id="_Linear1" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(61.5,0,0,24.7035,618,112.102)"><stop offset="0" style="stop-color:#00ffe1;stop-opacity:1"/><stop offset="1" style="stop-color:#00ff68;stop-opacity:1"/></linearGradient><linearGradient id="_Linear2" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(82.1944,17.9203,-22.7329,104.268,546.714,153.918)"><stop offset="0" style="stop-color:#00d7ff;stop-opacity:1"/><stop offset="1" style="stop-color:#0fa;stop-opacity:1"/></linearGradient><linearGradient id="_Linear3" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(92.25,3.07254e-14,0,46.7134,452.25,189.857)"><stop offset="0" style="stop-color:#6300ff;stop-opacity:1"/><stop offset="1" style="stop-color:#00c8ff;stop-opacity:1"/></linearGradient><linearGradient id="_Linear4" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(102,2.26485e-14,0,35.8051,349.5,193.403)"><stop offset="0" style="stop-color:#ff007c;stop-opacity:1"/><stop offset="1" style="stop-color:#ef00ff;stop-opacity:1"/></linearGradient><linearGradient id="_Linear5" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(-52.4698,-14.1208,42.3902,-157.513,498.958,105.847)"><stop offset="0" style="stop-color:#f600ff;stop-opacity:1"/><stop offset="1" style="stop-color:#7100ff;stop-opacity:1"/></linearGradient><linearGradient id="_Linear6" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(-52.4698,-14.1208,42.3902,-157.513,397.062,104.326)"><stop offset="0" style="stop-color:#ff000e;stop-opacity:1"/><stop offset="1" style="stop-color:#ff007f;stop-opacity:1"/></linearGradient><linearGradient id="_Linear7" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(113.25,0,3.46787e-14,39.0447,237.75,195.772)"><stop offset="0" style="stop-color:#ff9c00;stop-opacity:1"/><stop offset="1" style="stop-color:#ff2100;stop-opacity:1"/></linearGradient><linearGradient id="_Linear8" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(70.5,3.91354e-15,9.63417e-15,10.8471,167.25,207.924)"><stop offset="0" style="stop-color:#f4ff00;stop-opacity:1"/><stop offset="1" style="stop-color:#ffae00;stop-opacity:1"/></linearGradient><linearGradient id="_Linear9" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(-58.7162,-13.901,20.8356,-88.0069,279.333,163.521)"><stop offset="0" style="stop-color:#ffb800;stop-opacity:1"/><stop offset="1" style="stop-color:#ff6c00;stop-opacity:1"/></linearGradient><linearGradient id="_Linear10" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(73.9647,19.1651,-27.1697,104.857,95.9297,153.829)"><stop offset="0" style="stop-color:#a3ff00;stop-opacity:1"/><stop offset="0.65" style="stop-color:#b0ff00;stop-opacity:1"/><stop offset="1" style="stop-color:#faff00;stop-opacity:1"/></linearGradient><linearGradient id="_Linear11" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(142.91,0,0,196.678,9.73036,115.701)"><stop offset="0" style="stop-color:#fff;stop-opacity:1"/><stop offset="0.13" style="stop-color:#deffed;stop-opacity:1"/><stop offset="0.53" style="stop-color:#78ffb8;stop-opacity:1"/><stop offset="0.91" style="stop-color:#5affa8;stop-opacity:1"/><stop offset="1" style="stop-color:#00ff78;stop-opacity:1"/></linearGradient></defs></svg>
              
            
!

CSS

              
                /**/
svg {
  width:600px;
  border:4px solid red;
}
              
            
!

JS

              
                
		tl = gsap.timeline({repeat:-1});

tl.from("#h", {duration: 1, drawSVG:"100% 100%", stagger: 0.1});
tl.from("#h2", {duration: .5, drawSVG:"0% 0%", stagger: 0.1});  
tl.from("#curl1", {duration: .1, drawSVG:"0% 0%", stagger: 0.1});
tl.from("#e", {duration: 1, drawSVG:"0% 0%", stagger: 0.1}); 
tl.from("#curl2", {duration: .1, drawSVG:"0% 0%", stagger: 0.1});
tl.from("#l1", {duration: .5, drawSVG:"0% 0%", stagger: 0.1}); 
tl.from("#curl3", {duration: .1, drawSVG:"0% 0%", stagger: 0.1});
tl.from("#l2", {duration: .5, drawSVG:"0% 0%", stagger: 0.1}); 
tl.from("#curl4", {duration: .1, drawSVG:"0% 0%", stagger: 0.1}); 
tl.from("#o", {duration: 1, drawSVG:"0% 0%", stagger: 0.1}); 
tl.from("#curl5", {duration: 1, drawSVG:"0% 0%", stagger: 0.1}); 

              
            
!
999px

Console