Pen Settings



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


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.


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.


                <div id ='controls'>
  <p>With GSAP 1.9.1, the state of the timeline is always consistent with these steps:</p>
  <a class='seek end'>1. Seek to 15</a>
  <a class='pause'>2. Pause</a>
  <a class='seek start'>3. Seek to 1</a>
  <a class='play'>4. Play</a>

<div class='box'>First</div>
<div class='box'>Second</div>
<div class='box'>Third</div>
<div class='box'>Fourth</div>
<div class='box'>Fifth</div>
<div class='box'>Sixth</div>
<div class='box'>Seventh</div>
<div class='box'>Last</div>


                body {
	font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
	margin: 0;
	color: #fff;
p { margin: 0 0 10px 0; }
.box {
  float: left;
  margin: 0 0 0 10px;
  padding: 10px;
  background: #111;
	color: #fff;
  border-radius: 3px;
.box.effecton { color: #3a2; }

#controls {
  overflow: hidden;
  padding: 10px;
#controls a {
  float: left;
  padding: 10px;
  margin: 0 10px 0 0;
  text-decoration: none;
  cursor: pointer;
  background: #b06;
	color: #fff;
  border-radius: 3px;
#controls a:hover { box-shadow: 0 0 0 2px #fff; }
#controls { background: #06e; }


                var boxes = $('.box');

var createTweens = function(target, time) {
  // faded initially
  TweenLite.set(target, { css:{ autoAlpha:0.2 } });
  // reveal
  tl.add(, 1, { css:{ autoAlpha:1 } }), time);
  // green text on
  tl.add(TweenLite.set(target, { css:{ className:'+=effecton' }, immediateRender:false }), time+2);
  // green text off
  tl.add(TweenLite.set(target, { css:{ className:'-=effecton' }, immediateRender:false }), time+4);
  // hide
  tl.add(, 1, { css:{ autoAlpha:0 } }), time+6);

var tl = new TimelineLite();

createTweens(boxes[0], 0);
createTweens(boxes[1], 2);
createTweens(boxes[2], 4);
createTweens(boxes[3], 6);
createTweens(boxes[4], 8);
createTweens(boxes[5], 10);
createTweens(boxes[6], 12);
createTweens(boxes[7], 14);

$('.play').click(function() {
$('.pause').click(function() {
$('.seek.start').click(function() {;
$('.seek.end').click(function() {;