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 is required to process package imports. If you need a different preprocessor remove all packages first.

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


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.


                <div id="container">
  <div id="expo">
    <img src="" />
    <div class="label">ExpoScaleEase</div>

  <div id="linear">
    <img src="" />
    <div class="label">Linear easing</div>

<link href='//,400' rel='stylesheet' type='text/css'>


                body {
  margin: 0;
  padding: 0;
  background-color: black;
#expo {
  /*display: none;*/
#container {
  display: flex;
  min-height: 100vh;
#expo, #linear {
  flex-grow: 1;
  overflow: hidden;
  position: relative;
  color: white;
  font-size: 3em;
#linear {
  border-left: 2px solid white;
img {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
.label {
  position: relative;
  top: 0px;
  text-align: center;
  font-family: "Signika Negative", sans-serif;
  background-color: rgba(0,0,0,0.5);


                TweenLite.set("img", {yPercent:-50, xPercent:-50, top:"50%", left:"50%", minWidth:"100%", position:"absolute"});

//linear easing doesn't APPEAR linear (visually).
TweenMax.fromTo("#linear img", 10, {scale:0.1}, {scale:8, ease:Linear.easeNone, repeat:-1});

//notice how we feed in the starting and ending [scale] values to ExpoScaleEase.config() so that it can adjust its curve accordingly so that scaling appears linear visually even though technically the scale values aren't animating linearly at all. 
TweenMax.fromTo("#expo img",   10, {scale:0.1}, {scale:8, ease:ExpoScaleEase.config(0.1, 8), repeat:-1});

//for a more complicated example that shows multi-step zooming 
//(swapping new images for better resolution as it progresses),