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

              
                <a href="" class="fl-button">
  <span class="fl-button-text">Tell me more</span>
  <svg width="243" height="69" viewBox="0 0 243 69" preserveAspectRatio="none" fill="none" xmlns="http://www.w3.org/2000/svg"><path id="beginShape" d="M11 0.75H232C237.661 0.75 242.25 5.33908 242.25 11V34V58C242.25 63.6609 237.661 68.25 232 68.25H11C5.33908 68.25 0.75 63.6609 0.75 58V11C0.75 5.33908 5.33908 0.75 11 0.75Z" stroke="#E43028" stroke-width="1.5"/><path id="endShape" d="M0.75 11C0.75 5.33908 5.33908 0.75 11 0.75H221.223C225.278 0.75 228.952 3.14069 230.594 6.84827L240.423 29.0351C241.549 31.5771 241.595 34.4675 240.548 37.0435L230.472 61.8566C228.902 65.7217 225.147 68.25 220.975 68.25H11C5.33909 68.25 0.75 63.6609 0.75 58V11Z" stroke="#E43028" stroke-width="1.5"/></svg>
</a>
              
            
!

CSS

              
                a.fl-button {
  position: relative; display: inline-block;
  padding: 20px 24px; font-size: 20px; text-deccoration: none;
  width: 250px; text-align: center; border: none;
}
a.fl-button svg {
    position: absolute; left: 0; top: 0;
    height: 100%; width: 100%; overflow: hidden;
    vertical-align: middle;
}
a.fl-button svg #endShape {
    visibility: hidden;
}
a.fl-button svg path {
  transform-origin: 0px 0px;
}
              
            
!

JS

              
                const tlBtn = gsap.timeline({paused: true, reversed: true});
tlBtn.to("#beginShape", {duration: 0.5, ease: "power2.out", morphSVG: { shape:"#endShape", shapeIndex: 8 } });

$( "a.fl-button" ).hover(
    function() {
        tlBtn.play();
    }, function() {
        tlBtn.reverse();
    }
);
              
            
!
999px

Console