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.


                <h1>DrawSVGPlugin Values</h1>

<svg version="1.1"
	 xmlns="" xmlns:xlink=""
	 width="516.3px" height="190px" viewBox="0 0 516.3 190" style="enable-background:new 0 0 516.3 211.99;"
  <path id="template" d="M9.13,99.99c0,0,18.53-41.58,49.91-65.11c30-22.5,65.81-24.88,77.39-24.88c33.87,0,57.55,11.71,77.05,28.47c23.09,19.85,40.33,46.79,61.71,69.77c24.09,25.89,53.44,46.75,102.37,46.75c22.23,0,40.62-2.83,55.84-7.43c27.97-8.45,44.21-22.88,54.78-36.7c14.35-18.75,16.43-36.37,16.43-36.37"/>
	<path id="path" d="M9.13,99.99c0,0,18.53-41.58,49.91-65.11c30-22.5,65.81-24.88,77.39-24.88c33.87,0,57.55,11.71,77.05,28.47c23.09,19.85,40.33,46.79,61.71,69.77c24.09,25.89,53.44,46.75,102.37,46.75c22.23,0,40.62-2.83,55.84-7.43c27.97-8.45,44.21-22.88,54.78-36.7c14.35-18.75,16.43-36.37,16.43-36.37"/>

<div id="code">drawSVG:<div id="current">"100%"</div></div>
<button id="next" class="dark-grey-button club-demo-button" style="display:block; margin-bottom:20px;">Next Example</button>
<div id="description">Use either percentages or absolute lengths. Use a space-delimited value to define a segment like <code>"40%&nbsp;60%"</code>. If you use a single value, <code>0</code> is assumed for the starting value, so <code>"100%"</code> is the same as <code>"0&nbsp;100%"</code> and <code>"true"</code>.</div>



                body {
  background-color: black;
  color: #ccc;
  text-align: center;

h1 {
  font-family: Arial, sans-serif;

#template, #path {
  fill: none;
#template {
  stroke-width: 5px;
  stroke: #444;
#path {
  stroke: #88CE02;
  stroke-width: 20px;
  visibility: hidden;
#code, #value {
  font-size: 40px;
  font-family: monospace;
#code {
  color: #777;
  margin: 20px;
  position: relative;
#current {
  display: inline-block;
  color: white;
#description {
  max-width: 530px;
  color: #777;
  font-family: Arial, sans-serif;
  font-size: 24px;
  display: inline-block;
  text-align: left;


                var values = "100%;40% 60%;20 350;50% 50%;true;10%".split(";"),
    currentIndex = 0;

//set the initial value
gsap.set("#path, #code", {visibility:"visible"});

function next() {
  gsap.killTweensOf(next); //in case the user clicks, clear any delayed calls to this method. 
  if (++currentIndex === values.length) {
    currentIndex = 0;
  if (values[currentIndex] === "true") {
    gsap.set("#current", {text:(values[currentIndex])});
  } else {
  	gsap.set("#current", {text:('"' + values[currentIndex] + '"')});
  }"#path", {drawSVG:values[currentIndex], duration: 1, ease:"power1.inOut"});

document.querySelector("#next").addEventListener("click", next);