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.


                <nav class="global-nav-wipe-1">
    <div id="wipe1_mc" class="wipe one"></div>
    <div id="wipe2_mc" class="wipe two"></div>
    <div id="wipe3_mc" class="wipe three"></div>


                html, body {
  font: normal normal normal 10pt/normal Arial, Helvetica, sans-serif;
  color: #9e9e9e;

// $usage       @include translate3d(0);
@mixin translate3d($x:0, $y: 0, $z: 0) {
  -webkit-transform: translate3d($x, $y, $z);
  -moz-transform: translate3d($x, $y, $z);
  -ms-transform: translate3d($x, $y, $z);
  -o-transform: translate3d($x, $y, $z);
  transform: translate3d($x, $y, $z);

    $color-blue-1: #0a154b;
    $color-blue-2: #0e2178;
    $color-blue-3: #1c49f9;

    position: relative;
    display: block;
    height: 48px;
    width: 100%;
    border: 1px dotted #cccccc;

      position: absolute;
      display: block;
      height: 48px;
      width: 100%;

      @include translate3d(-100%);

        background: $color-blue-3;
        background: $color-blue-2;
        background: $color-blue-1;



                //To learn more about using GreenSock's bonus plugins for free on CodePen visit:

// Thank you to the Carl and the GSAP team!
// You've given the communtity an amazing product.

var Wipe = {};
Wipe.wipe1= document.getElementById("wipe1_mc");
Wipe.wipe2= document.getElementById("wipe2_mc");
Wipe.wipe3= document.getElementById("wipe3_mc"); = new TimelineLite({ repeat:3, repeatDelay:1 });

Wipe.init = function () {, .7, {xPercent:0});, 1, {xPercent:0}, "-=.5");, 1, {xPercent:0}, "-=.4");

Wipe.animate = function () {;