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

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.

HTML

              
                <!-- Quick and dirty RaphaelJS demo -->
Click to animate

<div id="holder">
  
</div>
<script src="//cdnjs.cloudflare.com/ajax/libs/raphael/2.1.0/raphael-min.js"></script>
              
            
!

CSS

              
                body {background: #222; color: white; font-family: sans-serif;font-size: 20px; overflow: hidden;}

#holder {
  width:200px;
  positioN: relative;
  margin: 0 auto;
}
              
            
!

JS

              
                var canvas = Raphael('holder');
var startPath = Raphael.transformPath("m 351.42968,278.25469 c 0,0 -0.26078,1.16722 5.80096,-36.81931 6.05953,-38.0013 12.11905,-48.49155 18.17902,-48.68362 6.06188,-0.1773 10.72458,10.20952 13.5203,20.24175 2.79809,10.01745 5.36348,28.44187 5.36348,28.44187 0,0 3.96029,-21.2169 5.59366,-29.60909 1.63042,-8.39221 8.62565,-25.87103 14.21799,-26.10743 5.59677,-0.2364 10.49025,8.6286 13.75257,20.9805 3.26527,12.3519 1.39919,28.4271 1.39919,28.4271 0,0 11.88944,-20.0349 11.88944,-54.0765 0,-34.02683 -13.28863,-53.7219 -13.28863,-53.7219 -39.62611,24.3492 -60.37287,20.8623 -60.37287,20.8623 3.49591,-24.9402 -2.09731,-41.7246 -2.09731,-41.7246 l -6.06174,10.71187 c -2.0951,-2.09805 -7.89606,-2.31967 -7.89606,-2.31967 0,0 -5.80318,0.22162 -7.8999,2.31967 l -6.05952,-10.71187 c 0,0 -5.59603,16.7844 -2.09968,41.7246 0,0 -20.74735,3.4869 -60.37316,-20.8623 0,0 -13.28656,19.69507 -13.28656,53.7219 0,34.0416 11.88752,54.0765 11.88752,54.0765 0,0 -1.86535,-16.0752 1.39904,-28.4271 3.2638,-12.3519 8.15905,-21.2169 13.75228,-20.9805 5.59544,0.2364 12.58756,17.71522 14.21857,26.10743 1.63338,8.39219 5.59544,29.60909 5.59544,29.60909 0,0 2.56376,-18.42442 5.3617,-28.44187 2.7975,-10.03223 7.46093,-20.41905 13.52031,-20.24175 6.05952,0.19207 12.12126,10.68232 18.18078,48.68362 6.06233,37.98653 5.80318,36.81931 5.80318,36.81931", "t-261.71086,-106.46576");

	var el = canvas.path(startPath)
		.attr({fill:"#f3be3f"});

var animate = function() {
var path3 = Raphael.transformPath("m 94.284977,461.08981 c -3.353925,-5.42243 -8.779305,-63.0006 -25.56075,-64.55198 -7.465808,-0.67965 -12.656265,17.05035 -12.656265,17.05035 -1.029818,-5.68837 -9.809123,-27.37808 -25.303665,-28.6635 -15.493065,-1.3002 -26.0823082,23.24108 -26.0823082,23.24108 0,0 -1.8069825,-35.38613 9.0378672,-65.33506 10.844851,-29.94892 29.954836,-46.48215 29.954836,-46.48215 9.29643,22.20683 28.144897,26.595 31.763295,27.8952 3.618397,1.28543 3.099795,-3.10275 3.099795,-3.10275 0,-18.8529 10.044045,-26.07787 10.044045,-26.07787 -3.119003,5.15647 0,12.91335 0,12.91335 1.543987,-1.55138 3.379042,-1.80255 5.70315,-1.80255 2.330017,0 4.165072,0.25117 5.70315,1.80255 0,0 3.124913,-7.75688 0,-12.91335 0,0 10.049953,7.22497 10.049953,26.07787 0,0 -0.5186,4.38818 3.0998,3.10275 3.61396,-1.3002 22.46095,-5.68837 31.75738,-27.8952 0.001,0 19.11147,16.53323 29.95632,46.48215 10.84485,29.94893 9.03786,65.33506 9.03786,65.33506 0,0 -10.59072,-24.54128 -26.07787,-23.24108 -15.49454,1.28542 -24.27385,22.97513 -25.3081,28.6635 0,0 -5.19046,-17.73 -12.65183,-17.05035 -16.78736,1.55138 -22.206828,59.12955 -25.566663,64.55198","t-4.5690985,-295.06313");

		el.animate({
			path: path3
		},5000, function() {;
       el.animate({
         path: startPath        
       }, 5000);
		});
}

document.addEventListener('click',animate);
              
            
!
999px

Console