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

              
                    <section id="first-section">
      <nav>
        <div class="nav-wrapper">
          <h4>Ready co.</h4>
          <a class="button" href="#">Sign Up</a>
        </div>
      </nav>
      <div class="container">
        <div class="title">Nature.</div>
        <div class="images">
          <div class="image-wrapper" id="first">
            <img src="./img/6.png" />
          </div>
          <div class="image-wrapper" id="second">
            <img src="./img/5.png" />
          </div>
          <div class="image-wrapper" id="third">
            <img src="./img/4.png" />
          </div>
          <div class="image-wrapper" id="fourth">
            <img src="./img/3.png" />
          </div>
          <div class="image-wrapper" id="fifth">
            <img src="./img/2.png" />
          </div>
          <div class="image-wrapper" id="sixth">
            <img src="./img/1.png" />
          </div>
          <div class="blur"></div>
        </div>
        <footer>
          <div class="footer-wrapper">
            <ul>
              <li>Instagram.</li>
              <li>Facebook.</li>
              <li>Dribble.</li>
              <li>Twitter.</li>
            </ul>
          </div>
        </footer>
        <div class="content">
          <div class="content-wrapper">
            <div class="content-images">
              <div class="content-image-wrapper one">
                <img
                  src="https://images.unsplash.com/photo-1550422086-b9589ec2d371?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=675&q=80"
                />
                <h4>W</h4>
              </div>
              <div class="content-image-wrapper two">
                <img
                  src="https://images.unsplash.com/photo-1550433251-d1a8ff40ff05?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=634&q=80"
                />
                <h4>E</h4>
              </div>
              <div class="content-image-wrapper three">
                <img
                  src="https://images.unsplash.com/photo-1550364387-ffbad4f8e9b2?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=634&q=80"
                />
                <h4>S</h4>
              </div>
              <div class="content-image-wrapper four">
                <img
                  src="https://images.unsplash.com/photo-1550183203-8d3ca82400c0?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=634&q=80"
                />
                <h4>T</h4>
              </div>
            </div>
            <p class="text">
              Lorem Ipsum is simply dummy text of the printing and typesetting
              industry. Lorem Ipsum has been the industry's standard dummy text
              ever since the 1500s, when an unknown printer took a galley of
              type and scrambled it to make a type specimen book. It has
              survived not only five centuries.Lorem Ipsum has been the
              industry's standard dummy text ever since the 1500s, when an
              unknown printer took a galley of type and scrambled it to make a
              type specimen book.
            </p>
          </div>
        </div>
      </div>
    </section>
              
            
!

CSS

              
                * {
  margin: 0;
  padding: 0;
  color: #fff;
  font-family: "Poppins", sans-serif;
}

h1 {
  color: #000;
  margin-top: 300px;
  text-align: center;
}

section {
  height: 100vh;
  width: 100%;
}

.container {
  width: 100%;
  height: 100vh;
}

.nav-wrapper {
  width: 100%;
  display: flex;
  justify-content: space-between;
  position: absolute;
  top: 0;
  align-items: center;
  padding: 20px 0;
}

.nav-wrapper h4 {
  color: #fff;
  font-family: "Montserrat", sans-serif;
  margin-left: 30px;
}

.nav-wrapper .button {
  text-decoration: none;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  padding: 10px 20px;
  background-color: #030000;
  margin-right: 30px;
  border-radius: 20px;
  font-size: 0.8em;
}

.title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 100px;
  font-weight: 700;
}

.images {
  width: 100%;
  height: 110%;
  position: relative;
  z-index: -1;
  top: -10%;
}

.image-wrapper {
  position: absolute;
  width: 100%;
  height: 100%;
  bottom: 0;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
}

/* Creates a smooth transition between the top img and the next section */
.blur {
  width: 100%;
  margin-left: -10%;
  height: 250px;
  background-color: #030000;
  position: absolute;
  bottom: -180px;
  filter: blur(40px);
  z-index: 999;
}

.footer-wrapper {
  position: absolute;
  bottom: 0;
  right: 0;
}

ul {
  list-style: none;
  margin-bottom: 20px;
  margin-right: 30px;
}

li {
  display: inline;
  color: white;
  font-family: "Montserrat", sans-serif;
  font-size: 0.8em;
  margin-left: 20px;
}

.content {
  height: 100%;
  width: 100%;
  background-color: #030000;
  z-index: 0;
  top: 100%;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
}

.content-wrapper {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.content-images {
  width: 70%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
}

.content-image-wrapper {
  height: 220px;
  width: 150px;
  text-align: center;
  position: relative;
}

.content-image-wrapper img {
  max-width: 100%;
  width: 100%;
  max-height: 100%;
  height: 100%;
}

.one {
  top: -10px;
}
.two {
  top: -50px;
}
.three {
  top: 20px;
}
.four {
  top: -20px;
}

.content-image-wrapper h4 {
  font-size: 1.8em;
  position: relative;
  top: -30px;
  opacity: 0.6;
}

.text {
  padding-top: 100px;
  width: 60%;
  font-size: 0.8em;
  text-align: center;
}

              
            
!

JS

              
                document.addEventListener("DOMContentLoaded", () => {
  let controller = new ScrollMagic.Controller();

  let timeline = new TimelineMax();
  // position where the images will scroll to during animation
  timeline
    .to("#sixth", 6, { y: -700 })
    .to("#fifth", 6, { y: -500 }, "-=6")
    .to("#fourth", 6, { y: -400 }, "-=6")
    .to("#third", 6, { y: -300 }, "-=6")
    .to("#second", 6, { y: -200 }, "-=6")
    .to("#first", 6, { y: -100 }, "-=6")
    .to(".content, .blur", 6, { top: "0%" }, "-=6")
    .to(".title, nav, .footer-wrapper", 6, { y: -600 }, "-=6")
    .from(".one", 3, { top: "40px", autoAlpha: 0 }, 0)
    .from(".two", 3, { top: "40px", autoAlpha: 0 }, "-=3.5")
    .from(".three", 3, { top: "40px", autoAlpha: 0 }, "-=3.5")
    .from(".four", 3, { top: "40px", autoAlpha: 0 }, "-=3.5");

  let scene = new ScrollMagic.Scene({
    triggerElement: ".section", // starts at section element
    duration: "200%", // makes animation smooth
    triggerHook: 0 // starts the animation at the top of the screen
  })
    .setTween(timeline)
    .setPin(".section")
    .addTo(controller);
});


              
            
!
999px

Console