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

              
                <script type="text/javascript" src="http://cdn.jsdelivr.net/vivus/0.2.1/vivus.min.js"></script>
<p>Rerun to see in action again.</p>
<br>
<svg version="1.1" id="Mysvg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="286.525px" height="248.938px" viewBox="0 0 286.525 248.938" enable-background="new 0 0 286.525 248.938" xml:space="preserve" style="">

  <path class="hsTnFpIB_6" fill="blue" stroke="#231F20" stroke-miterlimit="10" d="M60.744,203.963c-5.214-2.718-3.018-12.355,6.918-32.983
  c9.594-19.918,52.647-102.557,52.647-102.557s17.578,60.413,24.185,80.428c3.17,9.602,8.594,14.1,17.511,15.778
  c7.872,1.484,19.649,0.572,27.24-4.47c5.95-3.951,8.835-10.667,7.688-18.495c-2.269-15.482-19.213-29.032-29.759-44.764
  c-11.888-17.732-13.513-28.708-11.888-43.001c2.992-26.316,22.876-35.467,22.876-35.467h-66.769c0,0-60.942,112.085-77.629,153.438
  c-11.103,27.511-15.511,48.29,10.228,56.896c8.107,2.71,24.082,2.112,24.082,2.112l4.023-26.568
  C72.098,204.31,64.679,206.013,60.744,203.963z"></path>

  <path fill="blue" stroke="#231F20" stroke-miterlimit="10" d="M199.089,71.954c-2.586-4.04-3.878-7.715-3.878-11.029
  c0-3.555,1.413-6.604,4.242-9.15c2.827-2.545,6.382-3.817,10.666-3.817c8.646,0,17.979,6.465,27.997,19.393l24.361-21.573
  c-14.224-19.553-31.876-29.331-52.965-29.331c-15.353,0-27.555,5.454-36.604,16.362c-7.192,8.727-10.786,18.585-10.786,29.572
  c0,8.323,2.503,15.732,7.515,24.377c3.716,6.385,12.616,15.694,23.135,29.382c16.813,21.876,14.396,35.106,7.106,44.141
  c-3.752,4.648-10.563,9.935-23.268,11.128c-9.93,0.932-19.964,0.319-27.611-4.929c-4.59-3.148-8.227-7.147-10.601-15.654
  l-29.986,0.021c2.221,15.582,9.563,28.627,21.596,36.588c10.636,7.035,25.59,10.17,47.388,9.358
  c-0.156-0.658-0.247-1.341-0.247-2.045c0-4.892,3.965-8.855,8.855-8.855c4.892,0,8.857,3.965,8.857,8.855
  c0,0.235-0.019,0.466-0.035,0.696c11.587-2.278,21.846-7.357,29.479-14.396c15.067-13.9,19.262-36.732,9.501-56.264
  C222.138,101.432,201.675,75.995,199.089,71.954z"></path>

  <path fill="blue" stroke="#231F20" stroke-miterlimit="10" d="M81.895,191.922h6.208c5.819,0,10.148,0.688,12.987,2.063
    c2.838,1.376,5.147,3.538,6.925,6.484c1.777,2.947,2.667,6.348,2.667,10.199c0,3.96-0.945,7.595-2.836,10.905
    c-1.891,3.312-4.274,5.726-7.15,7.243c-2.876,1.519-6.871,2.277-11.983,2.277h-12.17L81.895,191.922z M88.347,198.819
    l-3.448,25.432h2.42c3.724,0,6.419-0.311,8.086-0.933c2.34-0.887,4.22-2.405,5.639-4.554c1.418-2.147,2.128-4.802,2.128-7.962
    c0-2.592-0.499-4.763-1.496-6.512c-0.998-1.748-2.405-3.098-4.223-4.048c-1.818-0.949-4.236-1.424-7.254-1.424H88.347z" class="hsTnFpIB_0"></path>

  <path fill="blue" stroke="#231F20" stroke-miterlimit="10" d="M136.286,222.615l6.258,3.244c-1.402,1.843-3.262,3.301-5.579,4.373
    c-2.317,1.071-4.887,1.608-7.709,1.608c-4.421,0-7.905-1.243-10.453-3.729c-2.548-2.485-3.821-5.788-3.821-9.906
    c0-4.705,1.593-8.686,4.78-11.944c3.186-3.257,7.034-4.887,11.544-4.887c2.716,0,5.135,0.596,7.257,1.784
   c2.121,1.19,3.795,2.921,5.02,5.193c1.225,2.272,1.838,4.74,1.838,7.403c0,0.835-0.09,1.811-0.268,2.929h-23.114 c0.07,2.015,0.732,3.619,1.984,4.813c1.251,1.194,2.978,1.791,5.18,1.791C131.865,225.289,134.226,224.398,136.286,222.615z
     M138.096,213.466c-0.532-1.775-1.42-3.12-2.663-4.035c-1.243-0.914-2.743-1.371-4.5-1.371c-1.74,0-3.312,0.471-4.714,1.411
    c-1.402,0.941-2.468,2.273-3.195,3.995H138.096z" class="hsTnFpIB_1"></path>

  <path fill="blue" stroke="#231F20" stroke-miterlimit="10" d="M171.107,206.169l-3.39,5.433c-0.873-1.296-1.789-2.25-2.75-2.863
    c-0.962-0.612-1.859-0.918-2.696-0.918c-0.642,0-1.184,0.178-1.628,0.532c-0.445,0.355-0.668,0.755-0.668,1.198 c0,0.426,0.178,0.853,0.534,1.278c0.338,0.426,1.361,1.252,3.07,2.477c2.724,1.953,4.517,3.626,5.38,5.02
    c0.863,1.395,1.295,2.907,1.295,4.541c0,2.148-0.883,4.181-2.649,6.098c-1.767,1.918-4.327,2.877-7.683,2.877
    c-1.936,0-3.697-0.392-5.287-1.172c-1.588-0.781-3.359-2.211-5.313-4.288l4.395-5.112c1.988,2.627,4.163,3.94,6.524,3.94
    c0.94,0,1.69-0.226,2.25-0.679c0.56-0.452,0.839-0.989,0.839-1.611c0-0.496-0.213-1.007-0.639-1.531
    c-0.426-0.523-1.59-1.46-3.488-2.81c-2.202-1.562-3.721-2.902-4.555-4.021c-1.172-1.563-1.758-3.213-1.758-4.953
    c0-2.433,0.92-4.412,2.757-5.938c1.837-1.527,4.008-2.291,6.511-2.291c1.758,0,3.426,0.418,5.007,1.252
    C168.746,203.462,170.059,204.642,171.107,206.169z" class="hsTnFpIB_2"></path>

  <path fill="blue" stroke="#231F20" stroke-miterlimit="10" d="M181.45,202.121h7.043l-3.905,28.974h-7.096L181.45,202.121z
     M186.333,190.27c1.207,0,2.242,0.431,3.104,1.292c0.86,0.861,1.291,1.895,1.291,3.103c0,1.207-0.431,2.241-1.291,3.102
    c-0.861,0.861-1.896,1.292-3.104,1.292s-2.24-0.431-3.102-1.292c-0.861-0.86-1.292-1.895-1.292-3.102
    c0-1.208,0.431-2.241,1.292-3.103S185.126,190.27,186.333,190.27z
                                              M219.562,202.121h7.128l-3.313,23.26
    c-0.631,4.563-1.281,7.588-1.948,9.073c-1.046,2.299-2.804,4.205-5.274,5.717c-2.471,1.513-5.572,2.269-9.306,2.269
    c-3.103,0-5.803-0.591-8.103-1.771c-2.299-1.181-4.017-2.703-5.152-4.566l6.225-3.196c1.866,1.936,4.295,2.903,7.284,2.903
    c1.739,0,3.243-0.312,4.513-0.933c1.268-0.621,2.256-1.46,2.963-2.517c0.706-1.057,1.204-2.623,1.494-4.7
    c-2.628,2.29-5.609,3.436-8.943,3.436c-2.32,0-4.463-0.572-6.43-1.718c-1.967-1.145-3.512-2.756-4.635-4.833
    c-1.124-2.077-1.686-4.385-1.686-6.924c0-2.858,0.735-5.544,2.206-8.056c1.471-2.513,3.472-4.505,6.005-5.979
    s5.18-2.211,7.939-2.211c1.67,0,3.188,0.326,4.549,0.978s2.696,1.745,4.004,3.282L219.562,202.121z M210.821,208.086
    c-2.651,0-4.888,0.905-6.707,2.717c-1.82,1.811-2.73,4.039-2.73,6.684c0,2.148,0.676,3.871,2.029,5.167s3.165,1.943,5.434,1.943
    c1.701,0,3.273-0.396,4.719-1.188s2.589-1.93,3.43-3.409c0.842-1.48,1.262-3.075,1.262-4.784c0-2.044-0.694-3.744-2.085-5.098
    C214.782,208.763,212.999,208.086,210.821,208.086z
                                                               M234.979,202.121h7.096l-0.402,2.94
    c2.72-2.457,5.546-3.687,8.479-3.687c2.506,0,4.559,0.796,6.158,2.387c1.6,1.59,2.4,3.594,2.4,6.011
    c0,1.138-0.152,2.834-0.453,5.091l-2.219,16.231h-7.095l2.165-15.845c0.213-1.634,0.32-2.858,0.32-3.675
    c0-1.172-0.335-2.073-1.002-2.703c-0.668-0.63-1.617-0.945-2.847-0.945c-1.194,0-2.389,0.412-3.583,1.238
    c-1.193,0.825-2.111,1.971-2.753,3.435c-0.642,1.465-1.229,4.213-1.765,8.242l-1.363,10.253h-7.095L234.979,202.121z" class="hsTnFpIB_5"></path>

</svg>
              
            
!

CSS

              
                #Mysvg * {
  stroke: blue;
  stroke-width: 1;
  fill-opacity: 0;
  transition: fill-opacity 0.3s;
}

#Mysvg.finished * {
  fill-opacity: 1;
}

              
            
!

JS

              
                new Vivus(
  "Mysvg",
  {
    type: "delayed",
    start: "autostart",
    delay: 100,
    duration: 200
  },
  function (obj) {
    obj.el.classList.add("finished");
  }
);

              
            
!
999px

Console