Pen Settings

HTML

CSS

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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

              
                <body>
<div id="demo">
	<div id="animlogo"></div>
</div>

<!-- snippett of orig GSAP example -->
<input type="button" id="playBtn" value="play()">
<!-- <input type="button" id="pauseBtn" value="pause()"> -->
<input type="button" id="restartBtn" value="restart()"> 



<!-- code for navigation UI -->
<div id='piemenu' data-nav
 data-nav-slicepath='DonutSlice'
 data-nav-marker data-nav-markerpath='PieLineMarker'
 data-nav-rotateoff
 data-nav-navangle='270'
 data-nav-cssmode 
 data-nav-init>
  <div data-nav-navitemtext='Play' ></div>

  <!-- this is an example oif what I'm trying to do -->
  <div data-nav-navitemtext='Pause' ><a id="pauseBtn" value="pause()"></a></div>

  <div data-nav-navitemtext='Restart' ></div>
  <div data-nav-navitemtext='3' ></div>
  <div data-nav-navitemtext='4' ></div>
</div>
              
            
!

CSS

              
                
              
            
!

JS

              
                window.onload = function() {	

	// GSAP example code
	var animlogo = document.getElementById("animlogo"),
	playBtn = document.getElementById("playBtn"),
	pauseBtn = document.getElementById("pauseBtn"),
	tween = TweenLite.to(animlogo, 6, {left:"90%", ease:Linear.easeNone});
		
	playBtn.onclick = function() {
		//Play the tween forward from the current position.
		//If tween is complete, play() will have no effect
		tween.play();
	}
	pauseBtn.onclick = function() {
		tween.pause();
	}
	restartBtn.onclick = function() {
		//Start playing from a progress of 0.
		tween.restart();
	}

	// navigation UI
	var piemenu = new wheelnav('piemenu');
	piemenu.clockwise = false;
	piemenu.wheelRadius = piemenu.wheelRadius * 0.83;
	piemenu.createWheel();
}
              
            
!
999px

Console