Pen Settings



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


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


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.


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.




                * {
  margin: 0;
  padding: 0;
.svg-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;


                const heart1 = 'M129.997 250C-162.496 49.948 129.997 -104.423 129.997 88.203C129.997 -102.344 400.004 49.948 129.997 250Z'
const heart2 = 'M127.376 250.5C-157.974 174.568 127.376 -81.8946 127.376 27.0743C127.376 -78.0226 404.526 180.577 127.376 250.5Z'

const svg = Snap('#svg').attr({
  width: 150,
  height: 150,
  viewBox: '0, 0, 250 250',
  fill: '#D73939'
const path = svg.path(heart1)

const anim = (shape, duration, easing) => {
    path: shape
  }, duration, easing)

setInterval(() => {
  anim(heart2, 400, mina.easeout)
  setTimeout(() => {
    anim(heart1, 800, mina.bounce)
  }, 400)
}, 1400)