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="app">
  Lorem ipsum dolor sit amet consectetur adipisicing elit. Vitae, libero tenetur iusto placeat pariatur aliquid quos at facere magnam inventore iste laudantium qui velit eligendi aspernatur impedit voluptatibus officia expedita!
  Lorem, ipsum dolor sit amet consectetur adipisicing elit. Harum ducimus sed quidem magnam nemo alias exercitationem molestiae voluptatibus in, temporibus doloremque eius dignissimos excepturi adipisci quasi ex eaque deserunt rem.
  <div style="height: 5000px"></div>
  <div class="trigger-footer"></div>
  <footer class="footer-container">
    <div class="container">
          <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Consectetur culpa inventore labore quos officia, placeat ex blanditiis similique temporibus voluptate, explicabo ullam eos, quo magnam earum doloribus. Doloribus, ipsam ullam.</p>
      <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Cumque veritatis sunt quisquam provident, dolores eligendi dolorum soluta beatae unde quae vero sit quod ullam earum error modi. Quaerat, ex officia?</p>



                @import url(',400&display=swap');

body { 
  font-family: "Signika Negative", sans-serif; 
  font-weight: 300;
  margin: 0;
  padding: 0;
  background-color: purple;
  height: 100%;
  display: flex;
   flex-direction: column;

footer {
  height: 88vh;
  background-color: red;




// create the smooth scroller FIRST!
  content: "#app",
  smooth: 3,
  normalizeScroll: true,
  ignoreMobileResize: true,
  effects: true,

gsap.set(".container", { yPercent: -50 });

const uncover = gsap.timeline({ paused: true });".container", { yPercent: 0, ease: "none", 
  onUpdate: function() {
    console.log("update", this.progress());

  trigger: ".trigger-footer",
  start: "bottom bottom",
  end: "+=88%",
  animation: uncover,
  scrub: true,
  markers: false