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

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.

HTML

              
                <div class="spacer">
    <div class="checkpoint demo-checkpoint" data-checkpoint-animation="fade-up">Fade Up</div>
</div>
<div class="spacer">
    <div class="checkpoint demo-checkpoint" data-checkpoint-animation="fade-down">Fade Down</div>
</div>
<div class="spacer">
    <div class="checkpoint demo-checkpoint" data-checkpoint-animation="fade-left">Fade Left</div>
</div>
<div class="spacer">
    <div class="checkpoint demo-checkpoint" data-checkpoint-animation="fade-right">Fade Right</div>
</div>


<div class="spacer">
    <div class="checkpoint demo-checkpoint" data-checkpoint-animation="zoom-in">Zoom In</div>
</div>
<div class="spacer">
    <div class="checkpoint demo-checkpoint" data-checkpoint-animation="zoom-in-up">Zoom In Up</div>
</div>
<div class="spacer">
    <div class="checkpoint demo-checkpoint" data-checkpoint-animation="zoom-in-down">Zoom In Down</div>
</div>
<div class="spacer">
    <div class="checkpoint demo-checkpoint" data-checkpoint-animation="zoom-in-left">Zoom In Left</div>
</div>
<div class="spacer">
    <div class="checkpoint demo-checkpoint" data-checkpoint-animation="zoom-in-right">Zoom In Right</div>
</div>


<div class="spacer">
    <div class="checkpoint demo-checkpoint" data-checkpoint-animation="zoom-out">Zoom Out</div>
</div>
<div class="spacer">
    <div class="checkpoint demo-checkpoint" data-checkpoint-animation="zoom-out-up">Zoom Out Up</div>
</div>
<div class="spacer">
    <div class="checkpoint demo-checkpoint" data-checkpoint-animation="zoom-out-down">Zoom Out Down</div>
</div>
<div class="spacer">
    <div class="checkpoint demo-checkpoint" data-checkpoint-animation="zoom-out-left">Zoom Out Left</div>
</div>
<div class="spacer">
    <div class="checkpoint demo-checkpoint" data-checkpoint-animation="zoom-out-right">Zoom Out Right</div>
</div>


<div class="spacer">
    <div class="checkpoint demo-checkpoint" data-checkpoint-animation="flip-up">Flip Up</div>
</div>
<div class="spacer">
    <div class="checkpoint demo-checkpoint" data-checkpoint-animation="flip-down">Flip Down</div>
</div>
<div class="spacer">
    <div class="checkpoint demo-checkpoint" data-checkpoint-animation="flip-left">Flip Left</div>
</div>
<div class="spacer">
    <div class="checkpoint demo-checkpoint" data-checkpoint-animation="flip-right">Flip Right</div>
</div>
              
            
!

CSS

              
                body {
    background: #eee;
}

.spacer {
    margin: 100px auto;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 3px;
    height: 202px;
    width: 302px;
}

.spacer:first-child {
  margin-top: 400px;
}

.checkpoint {
    background: #00bcd4;
    border-radius: 3px;
    color: #fff;
    height: 200px;
    line-height: 200px;
    margin: 0 auto;
    text-align: center;
    width: 300px;
}

@media screen and (min-width: 980px) {
    .spacer {
        margin: 200px auto;
    }
}

@media screen and (min-width: 1220px) {
    .spacer {
        margin: 300px auto;
    }
}

.marker {
    position: fixed;
    /*top: 50%;*/
    right: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: red;
    opacity: 0.2;
}

              
            
!

JS

              
                Formstone.Ready(function() {
    $(".demo-checkpoint").checkpoint({
        // offset: -50,
        intersect: 'middle-top',
        reverse: true
    });

    $("body").find(".js-demo_tabs").on("update.tabs", function() {
        $(".demo-checkpoint").checkpoint("resize");
    });
});
              
            
!
999px

Console