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="100%" height="500">
  <g fill="#984629">
    <path d="M54.053 8.075c1.13-1.5.95-4.677.788-7.48-.005-.122-.012-.24-.02-.36C53.238.085 51.633 0 50.01 0c-6.223 0-12.177 1.146-17.67 3.224 3.918 1.884 9.986 5.126 16.73 9.916 2.3-1.98 4.036-3.808 4.983-5.065zm25.326 28.52c-2.465.28-4.542.684-6.32 1.25 8.495 14.832 11.807 33.568 12.617 47.143 8.415-8.575 13.76-20.166 14.265-33.005-5.798-7.127-13.48-16.19-20.563-15.386zm-50.498-12.8c5.968-1.242 11.575-4.246 16.046-7.417C35.6 9.954 27.822 6.62 26.275 5.986 16.598 11.216 8.855 19.55 4.35 29.65c5.856-2.333 12.197-3.52 18.426-4.677 2.014-.374 4.097-.76 6.106-1.18v.002z"/>
      <path d="M63.43 25.248c.532.535 1.064 1.08 1.59 1.635 1.948 2.044 3.715 4.28 5.335 6.645 2.36-.89 5.137-1.523 8.462-1.9 7.833-.885 14.8 5.32 20.777 12.153-1.28-10.356-5.723-19.73-12.342-27.122-3.613.435-7.64 1.173-11.745 2.398-2.693.804-6.982 2.99-12.077 6.192zM56.852 51.06c2.05-6.943 4.425-11.948 9.026-15.197-1.382-1.983-2.868-3.843-4.478-5.533-.744-.782-1.497-1.537-2.254-2.28C40.69 40.616 15.405 63.696 13.106 83.693c7.674 8.397 18.178 14.156 30.002 15.79 4.305-8.572 8.357-25.997 10.766-36.36 1.157-4.978 2.156-9.276 2.98-12.06z"/>
      <path d="M35.924 40.05c6.436-5.93 13.233-11.25 19.45-15.523-2.073-1.834-4.152-3.524-6.192-5.074-5.164 3.882-11.924 7.705-19.282 9.235-2.06.43-4.17.82-6.21 1.2-7.862 1.46-15.408 2.873-21.753 6.414C.7 40.652.025 45.238.025 49.984c0 10.617 3.32 20.454 8.966 28.55 3.657-14.48 16.2-28.592 26.934-38.484zM59.68 21.672c5.945-3.79 11.072-6.412 14.398-7.405 2.987-.892 5.917-1.542 8.692-2.016C76.358 6.68 68.52 2.71 59.87.98c.19 3.49.274 7.323-1.826 10.107-.998 1.323-2.686 3.136-4.882 5.104 2.15 1.673 4.337 3.5 6.517 5.482zm1.966 30.804c-.78 2.644-1.765 6.877-2.904 11.777-3.362 14.47-6.58 27.417-10.338 35.673.534.017 1.067.04 1.605.04 11.647 0 22.356-3.995 30.854-10.675-.335-14.204-3.74-34.296-12.318-49.21-3.327 2.472-5.118 6.36-6.9 12.396z"/>
			
					  </g>
						</svg>
              
            
!

CSS

              
                body {
  padding: 3em;
}
              
            
!

JS

              
                const ball = document.querySelector('svg g')

ball.addEventListener('click', e => {
  TweenMax.to(ball, 1.5, {
    y: 400,
    ease: 'Bounce.easeOut'
  });
})
              
            
!
999px

Console