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

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

              
                <div class="wrapper">

  <div class="container">
    <p>Lorem ipsum dolor sit, amet consectetur adipisicing elit. Nesciunt nulla et, architecto cupiditate ipsam voluptatum, veritatis libero magni vero adipisci quaerat corporis, numquam harum minus quod perferendis totam at culpa aspernatur aperiam facere obcaecati consectetur. Unde, suscipit voluptates aspernatur sunt ipsam ratione eaque provident, adipisci ex modi rem quidem? Nihil iusto, a provident nisi ipsum perspiciatis soluta dignissimos inventore architecto eligendi in voluptatem sint doloremque repellat vitae magni dolores ipsam illum debitis obcaecati unde voluptatum. Culpa distinctio dolores iure odit eveniet libero, perferendis neque quod suscipit alias ex commodi sapiente. Alias veritatis optio deserunt ipsa fugiat doloribus ut consectetur!</p>
    <p>Lorem ipsum dolor sit, amet consectetur adipisicing elit. Nesciunt nulla et, architecto cupiditate ipsam voluptatum, veritatis libero magni vero adipisci quaerat corporis, numquam harum minus quod perferendis totam at culpa aspernatur aperiam facere obcaecati consectetur. Unde, suscipit voluptates aspernatur sunt ipsam ratione eaque provident, adipisci ex modi rem quidem? Nihil iusto, a provident nisi ipsum perspiciatis soluta dignissimos inventore architecto eligendi in voluptatem sint doloremque repellat vitae magni dolores ipsam illum debitis obcaecati unde voluptatum. Culpa distinctio dolores iure odit eveniet libero, perferendis neque quod suscipit alias ex commodi sapiente. Alias veritatis optio deserunt ipsa fugiat doloribus ut consectetur!</p>
    <form>
      <div class="mb-3 animate animate-delay-0-25">
        <label for="exampleInputEmail1" class="form-label">Email address</label>
        <input type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp">
        <div id="emailHelp" class="form-text">We'll never share your email with anyone else.</div>
      </div>
      <div class="mb-3 animate animate-delay-0-25">
        <label for="exampleInputPassword1" class="form-label">Password</label>
        <input type="password" class="form-control" id="exampleInputPassword1">
      </div>
      <div class="mb-3 form-check">
        <input type="checkbox" class="form-check-input" id="exampleCheck1">
        <label class="form-check-label" for="exampleCheck1">Check me out</label>
      </div>
      <button type="submit" class="btn btn-primary">Submit</button>
    </form>
  </div>
</div>
              
            
!

CSS

              
                * {
  box-sizing: border-box;
}

.animate {
  opacity: 0;
  animation-duration: 1s;
  animation-fill-mode: both;
}

.animate-delay-0 {
  animation-delay: 0s;
}

.animate-delay-0-25 {
  animation-delay: 0.25s;
}

.animate-delay-0-50 {
  animation-delay: 0.5s;
}

.animate-delay-0-75 {
  animation-delay: 0.75s;
}

.animate-delay-1 {
  animation-delay: 1s;
}

.animate-delay-1-25 {
  animation-delay: 1.25s;
}

.animate-delay-1-50 {
  animation-delay: 1.5s;
}

.animate-delay-1-75 {
  animation-delay: 1.75s;
}

.animate-delay-2 {
  animation-delay: 2s;
}

.animate-delay-2-25 {
  animation-delay: 2.25s;
}

.animate-delay-2-50 {
  animation-delay: 2.5s;
}

.animate-delay-2-75 {
  animation-delay: 2.75s;
}

.animate-delay-3 {
  animation-delay: 3s;
}

.animate__fadeInUp {
  opacity: 1 !important;
  animation-name: fadeInUp;
}

.animate__fadeInUp *:not(span):not(div) {
  opacity: 1 !important;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translate3d(0, 50%, 0);
  }
  to {
    opacity: 1;
    transform: translateZ(0);
  }
}

              
            
!

JS

              
                gsap.registerPlugin(ScrollTrigger);

// Animate
let essyFadeInUp = gsap.utils.toArray(".animate");
essyFadeInUp.forEach((itemFadeInUp, index) => {
  let elemFadeInUp = gsap.timeline({
    scrollTrigger: {
      trigger: itemFadeInUp,
      start: "top 100%",
      scrub: false,
      toggleClass: "animate__fadeInUp"
    }
  });
});

              
            
!
999px

Console