cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation


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.

              <div class="wrap">
   <div class="compare">
   <div class="card">
      <h3>Cut and re-joined the path at the peak for a better start point 😀</h3>
        <svg id="heart2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 172 155.4">
         <path class="heartpath2" d="M85.5,25.5c33.8-41.9,85-26,85,21s-85,108.3-85,108.3S.5,93.5.5,46.5,52.3-18.1,85.5,25.5Z" transform="translate(0 0)"/>
    <button class="ht2">play</button>
              body {
  font-family: Dosis, Hevetica, Arial, sans-serif;
  font-size: 120%;
  line-height: 1.5;
  color: #333;

.wrap {
  width: 60%;
  max-width: 800px;
  margin: 1em auto;

h3 {
  font-weight: 700;
  font-size: 1.5rem;

.heartpath1, .heartpath2, .heartpath3{
  fill: none;
  stroke: #C02942;
  stroke-miterlimit: 10;

svg#heart1, svg#heart2, svg#heart3 {
  width: 300px;
  display: inline-block;
  margin: 2em auto 0 auto;

.compare {
  margin: 0 auto 2em auto;
  .card {
    text-align: center;

button {
  display: block;
  width: 200px;
  margin: 2em auto;
  padding: .5em 5%;
  font-weight: 400;
  background: #C02942;
  border: none;
  color: white;
var  heart2 = document.querySelector('.heartpath2'),
        bh2 = document.querySelector('.ht2');

var tlh2 = new TimelineMax();
tlh2.fromTo(heart2, 1, {drawSVG:"0%"}, {drawSVG:"100%", ease: Power2.easeInOut});

bh2.onclick = function() {

Loading ..................