Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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 width="420" height="131" viewBox="0 0 420 131" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="Group1">
<path id="aamir" d="M5.21307 9.90909H13.9205L18.3239 27.9205H18.6648L29.0341 9.90909H37.7415L32.9119 39H26.0653L29.0341 21.1307H28.7926L18.8778 38.8153H14.517L10.483 21.0312H10.2415L7.23011 39H0.383523L5.21307 9.90909ZM40.6783 9.90909H48.5334L52.6527 22.0824H52.951L61.0902 9.90909H68.9453L55.0959 29.2841L53.4766 39H46.4879L48.1214 29.2841L40.6783 9.90909ZM105.245 9.90909L100.415 39H94.4496L85.6854 22.2102H85.4865L82.6882 39H75.657L80.4865 9.90909H86.5376L95.2308 26.6705H95.4723L98.228 9.90909H105.245ZM111.129 39H103.572L118.217 9.90909H127.578L132.564 39H125.007L121.811 17.2386H121.584L111.129 39ZM112.038 27.5511H127.834L126.925 32.892H111.129L112.038 27.5511ZM140.526 9.90909H149.233L153.636 27.9205H153.977L164.347 9.90909H173.054L168.224 39H161.378L164.347 21.1307H164.105L154.19 38.8153H149.83L145.795 21.0312H145.554L142.543 39H135.696L140.526 9.90909ZM172.61 39L177.44 9.90909H197.724L196.758 15.6193H183.505L182.539 21.5852H194.755L193.789 27.3097H181.573L180.607 33.2898H193.86L192.894 39H172.61ZM217.752 9.90909L212.923 39H205.891L210.721 9.90909H217.752ZM236.413 18.6875C236.489 17.6174 236.205 16.7888 235.561 16.2017C234.927 15.6146 233.923 15.321 232.55 15.321C231.641 15.321 230.864 15.4394 230.22 15.6761C229.576 15.9034 229.07 16.2254 228.7 16.642C228.331 17.0492 228.099 17.5227 228.004 18.0625C227.919 18.4886 227.943 18.8674 228.075 19.1989C228.208 19.5303 228.44 19.8239 228.771 20.0795C229.112 20.3352 229.534 20.5578 230.036 20.7472C230.547 20.9366 231.12 21.1023 231.754 21.2443L234.141 21.8125C235.523 22.125 236.721 22.5417 237.734 23.0625C238.757 23.5739 239.586 24.1941 240.22 24.9233C240.855 25.643 241.29 26.4716 241.527 27.4091C241.764 28.3466 241.783 29.3977 241.584 30.5625C241.281 32.3996 240.556 33.9763 239.411 35.2926C238.274 36.6089 236.787 37.6174 234.95 38.3182C233.123 39.0189 230.997 39.3693 228.572 39.3693C226.148 39.3693 224.089 39.0047 222.393 38.2756C220.708 37.5369 219.486 36.4242 218.729 34.9375C217.971 33.4508 217.768 31.5758 218.118 29.3125H224.837C224.732 30.25 224.851 31.0312 225.192 31.6562C225.542 32.2812 226.082 32.7547 226.811 33.0767C227.54 33.3987 228.421 33.5597 229.453 33.5597C230.4 33.5597 231.229 33.4318 231.939 33.1761C232.659 32.9205 233.232 32.5653 233.658 32.1108C234.093 31.6562 234.358 31.1354 234.453 30.5483C234.548 30.0085 234.458 29.5398 234.183 29.142C233.918 28.7443 233.464 28.3987 232.82 28.1051C232.185 27.8116 231.352 27.5464 230.32 27.3097L227.408 26.5994C225.002 26.0123 223.179 25.0748 221.939 23.7869C220.708 22.4991 220.272 20.7519 220.632 18.5455C220.935 16.7367 221.683 15.1553 222.876 13.8011C224.079 12.447 225.599 11.3958 227.436 10.6477C229.283 9.89015 231.314 9.51136 233.53 9.51136C235.784 9.51136 237.678 9.89489 239.212 10.6619C240.755 11.4195 241.868 12.4896 242.55 13.8722C243.241 15.2453 243.44 16.8504 243.146 18.6875H236.413ZM252.337 39L257.166 9.90909H264.197L262.166 22.2102H262.55L274.197 9.90909H282.479L270.05 22.892L277.834 39H269.425L264.141 27.5653L260.675 31.1591L259.368 39H252.337ZM280.423 39L285.252 9.90909H292.283L290.352 21.5852H301.815L303.746 9.90909H310.763L305.934 39H298.917L300.849 27.3097H289.386L287.454 39H280.423ZM316.637 39H309.08L323.725 9.90909H333.086L338.072 39H330.515L327.319 17.2386H327.092L316.637 39ZM317.546 27.5511H333.342L332.433 32.892H316.637L317.546 27.5511ZM370.792 9.90909L365.962 39H359.996L351.232 22.2102H351.033L348.235 39H341.204L346.033 9.90909H352.085L360.778 26.6705H361.019L363.775 9.90909H370.792Z" fill="#AB0F0F"/>
</g>
</svg>

              
            
!

CSS

              
                
              
            
!

JS

              
                gsap.set("svg", { autoAlpha: 1 });
gsap.set("path", { drawSVG: 0, stroke: "#42a6e0" });

const tl = gsap.timeline({ repeat: -1, defaults: { ease: "none" } })
  .to("#aamir", { duration: 5, drawSVG: true })
              
            
!
999px

Console