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.


                <section class="first">
  First Section
<section class="second">
  <div class="container">
    <div class="box-wrapper">
      <div class="box box1">Box One</div>
      <div class="box box2">Box Two</div>

<section class="third">
  Third Section


                body {
  margin: 0;
  padding: 0;
section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
.first {
  background: blue;
.second {
  background: black;
  justify-content: space-between;
.third {
  background: green;
.container {
  max-width: 1170px;
  margin: auto;
.box-wrapper {
  display: flex;
  justify-content: space-between;
.box {
  /*   background: green; */
  width: 400px;
  height: 400px;
  border: 2px solid #ffffff;
  display: block;
  border-radius: 100%;




let tl = gsap.timeline({
  scrollTrigger: {
    trigger: ".second",
    markers: true,
    pin: true, // pin the trigger element while active
    start: "top top", // when the top of the trigger hits the top of the viewport
    end: "+=400", // end after scrolling 500px beyond the start
    scrub: 1
const tl2 = gsap
    scrollTrigger: {
      trigger: ".second",
      start: "top center",
      end: "top top",
      scrub: true,
      markers: true
  .to(".box1", {
    xPercent: 50
      xPercent: -50