Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ 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

              
                <link rel="stylesheet" href="https://unpkg.com/smooth-scrollbar@latest/dist/smooth-scrollbar.css">
<script src="https://unpkg.com/smooth-scrollbar@latest/dist/smooth-scrollbar.js"></script>
<div class="wrapper">
  <header class="header">
    <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Iusto consequuntur inventore reprehenderit velit. Velit excepturi, aliquam sit ut assumenda debitis a totam odio beatae. Facilis et repellendus quas numquam quis iste perferendis quaerat deserunt aperiam eos voluptate aut culpa consequatur ratione animi blanditiis error hic ipsam, vel velit! Qui eaque perspiciatis exercitationem maiores ad eos, possimus dolorum, culpa quo, quae adipisci facilis minima! Minus debitis enim dicta eos. Quasi, cupiditate nam atque consequuntur at praesentium voluptatem facere quaerat dolor culpa tempora iure, nulla, eligendi reprehenderit qui. Quaerat, voluptatibus.</p>
  </header>
  <div class="container">
    <div class="row blog-style-1">
      <!-- Post Item -->
      <div class="col-md-6 col-lg-4 blog-container">
        <div class="blog-item">
          <div class="blog-item__cover essy-fadein">
            <a href="blog-page.html">
              <img src="https://essy.thevesta.pro/assets/images/blog/img-1.jpg" alt="Alt Text">
              <div class="blog-item-date">
                01.01.2021
              </div>
            </a>
          </div>
          <div class="blog-item__text">
            <h4 class="animate animate-delay-0"><a href="blog-page.html">Creative Writing</a></h4>
            <p class="animate animate-delay-0-25">Dolor sit amet, consectetur adipisicing elit. Ad veniam, facere officia.</p>
            <div class="btn animate animate-delay-0-50"><a class="btn-text" href="blog-page.html">Read More</a></div>
          </div>
        </div>
      </div>
      <!-- // Post Item -->
      <!-- Post Item -->
      <div class="col-md-6 col-lg-4 blog-container">
        <div class="blog-item">
          <div class="blog-item__cover essy-fadein">
            <a href="blog-page.html">
              <img src="https://essy.thevesta.pro/assets/images/blog/img-2.jpg" alt="Alt Text">
              <div class="blog-item-date">
                01.01.2021
              </div>
            </a>
          </div>
          <div class="blog-item__text">
            <h4 class="animate animate-delay-0"><a href="blog-page.html">Name Inspiration</a></h4>
            <p class="animate animate-delay-0-25">Dolor sit amet, consectetur adipisicing elit. Ad veniam, facere officia.</p>
            <div class="btn animate animate-delay-0-50"><a class="btn-text" href="blog-page.html">Read More</a></div>
          </div>
        </div>
      </div>
      <!-- // Post Item -->
      <!-- Post Item -->
      <div class="col-md-6 col-lg-4 blog-container">
        <div class="blog-item">
          <div class="blog-item__cover essy-fadein">
            <a href="blog-page.html">
              <img src="https://essy.thevesta.pro/assets/images/blog/img-3.jpg" alt="Alt Text">
              <div class="blog-item-date">
                01.01.2021
              </div>
            </a>
          </div>
          <div class="blog-item__text">
            <h4 class="animate animate-delay-0"><a href="blog-page.html">Random Word Brainstorming</a></h4>
            <p class="animate animate-delay-0-25">Dolor sit amet, consectetur adipisicing elit. Ad veniam, facere officia.</p>
            <div class="btn animate animate-delay-0-50"><a class="btn-text" href="blog-page.html">Read More</a></div>
          </div>
        </div>
      </div>
      <!-- // Post Item -->
      <!-- Post Item -->
      <div class="col-md-6 col-lg-4 blog-container">
        <div class="blog-item">
          <div class="blog-item__cover essy-fadein">
            <a href="blog-page.html">
              <img src="https://essy.thevesta.pro/assets/images/blog/img-4.jpg" alt="Alt Text">
              <div class="blog-item-date">
                01.01.2021
              </div>
            </a>
          </div>
          <div class="blog-item__text">
            <h4 class="animate animate-delay-0"><a href="blog-page.html">SEO Marketing</a></h4>
            <p class="animate animate-delay-0-25">Dolor sit amet, consectetur adipisicing elit. Ad veniam, facere officia.</p>
            <div class="btn animate animate-delay-0-50"><a class="btn-text" href="blog-page.html">Read More</a></div>
          </div>
        </div>
      </div>
      <!-- // Post Item -->
      <!-- Post Item -->
      <div class="col-md-6 col-lg-4 blog-container">
        <div class="blog-item">
          <div class="blog-item__cover essy-fadein">
            <a href="blog-page.html">
              <img src="https://essy.thevesta.pro/assets/images/blog/img-5.jpg" alt="Alt Text">
              <div class="blog-item-date">
                01.01.2021
              </div>
            </a>
          </div>
          <div class="blog-item__text">
            <h4 class="animate animate-delay-0"><a href="blog-page.html">Omuli Museum of the Horse</a></h4>
            <p class="animate animate-delay-0-25">Dolor sit amet, consectetur adipisicing elit. Ad veniam, facere officia.</p>
            <div class="btn animate animate-delay-0-50"><a class="btn-text" href="blog-page.html">Read More</a></div>
          </div>
        </div>
      </div>
      <!-- // Post Item -->
      <!-- Post Item -->
      <div class="col-md-6 col-lg-4 blog-container">
        <div class="blog-item">
          <div class="blog-item__cover essy-fadein">
            <a href="blog-page.html">
              <img src="https://essy.thevesta.pro/assets/images/blog/img-6.jpg" alt="Alt Text">
              <div class="blog-item-date">
                01.01.2021
              </div>
            </a>
          </div>
          <div class="blog-item__text">
            <h4 class="animate animate-delay-0"><a href="blog-page.html">Spelling and Vocabulary</a></h4>
            <p class="animate animate-delay-0-25">Dolor sit amet, consectetur adipisicing elit. Ad veniam, facere officia.</p>
            <div class="btn animate animate-delay-0-50"><a class="btn-text" href="blog-page.html">Read More</a></div>
          </div>
        </div>
      </div>
      <!-- // Post Item -->
      <!-- Post Item -->
      <div class="col-md-6 col-lg-4 blog-container">
        <div class="blog-item">
          <div class="blog-item__cover essy-fadein">
            <a href="blog-page.html">
              <img src="https://essy.thevesta.pro/assets/images/blog/img-7.jpg" alt="Alt Text">
              <div class="blog-item-date">
                01.01.2021
              </div>
            </a>
          </div>
          <div class="blog-item__text">
            <h4 class="animate animate-delay-0"><a href="blog-page.html">Frequently Asked Questions</a></h4>
            <p class="animate animate-delay-0-25">Dolor sit amet, consectetur adipisicing elit. Ad veniam, facere officia.</p>
            <div class="btn animate animate-delay-0-50"><a class="btn-text" href="blog-page.html">Read More</a></div>
          </div>
        </div>
      </div>
      <!-- // Post Item -->
      <!-- Post Item -->
      <div class="col-md-6 col-lg-4 blog-container">
        <div class="blog-item">
          <div class="blog-item__cover essy-fadein">
            <a href="blog-page.html">
              <img src="https://essy.thevesta.pro/assets/images/blog/img-8.jpg" alt="Alt Text">
              <div class="blog-item-date">
                01.01.2021
              </div>
            </a>
          </div>
          <div class="blog-item__text">
            <h4 class="animate animate-delay-0"><a href="blog-page.html">Welcome to Random Word</a></h4>
            <p class="animate animate-delay-0-25">Dolor sit amet, consectetur adipisicing elit. Ad veniam, facere officia.</p>
            <div class="btn animate animate-delay-0-50"><a class="btn-text" href="blog-page.html">Read More</a></div>
          </div>
        </div>
      </div>
      <!-- // Post Item -->
      <!-- Post Item -->
      <div class="col-md-6 col-lg-4 blog-container">
        <div class="blog-item">
          <div class="blog-item__cover essy-fadein">
            <a href="blog-page.html">
              <img src="https://essy.thevesta.pro/assets/images/blog/img-1.jpg" alt="Alt Text">
              <div class="blog-item-date">
                01.01.2021
              </div>
            </a>
          </div>
          <div class="blog-item__text">
            <h4 class="animate animate-delay-0"><a href="blog-page.html">Find out more</a></h4>
            <p class="animate animate-delay-0-25">Dolor sit amet, consectetur adipisicing elit. Ad veniam, facere officia.</p>
            <div class="btn animate animate-delay-0-50"><a class="btn-text" href="blog-page.html">Read More</a></div>
          </div>
        </div>
      </div>
      <!-- // Post Item -->
    </div>
  </div>
</div>
              
            
!

CSS

              
                body {
  background: #000;
  color: #d4d4d4;
}
.wrapper {
  height: 100vh;
}
/*=== Blog List a===*/
.blog-container {
  margin-bottom: 5rem;
}
.blog-item__cover {
  position: relative;
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.blog-item__cover img {
  display: block;
  width: 100%;
}
.blog-item-date {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 5px 15px;
  background: black;
  color: #d4d4d4;
  font-size: 0.875rem;
}
.blog-item h4 {
  margin-bottom: 1rem;
}
.blog-item h4 a {
  color: #fff;
}
.blog-item h4 a:hover {
  color: #efc176;
}
.blog-item p {
  margin-bottom: 1.5rem;
}
.blog-style-1 .blog-item {
  margin: 0 20px;
}

.essy-fadein {
  opacity: 0;
  transition: all 0.6s ease-out;
}
.essy-fadein.visible {
  opacity: 1;
  transform: none;
}

.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__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);

const scroller = document.querySelector(".wrapper");

const bodyScrollBar = Scrollbar.init(scroller, {
  damping: 0.1,
  delegateTo: document,
  alwaysShowTracks: true
});

ScrollTrigger.scrollerProxy(".wrapper", {
  scrollTop(value) {
    if (arguments.length) {
      bodyScrollBar.scrollTop = value;
    }
    return bodyScrollBar.scrollTop;
  }
});

bodyScrollBar.addListener(ScrollTrigger.update);

ScrollTrigger.defaults({
  scroller: scroller
});

// FadeIn
let essyFadeIn = gsap.utils.toArray(".essy-fadein");
essyFadeIn.forEach((itemFadeIn, index) => {
  let elemFadeIn = gsap.timeline({
    scrollTrigger: {
      trigger: itemFadeIn,
      start: "top 85%",
      // scrub:true,
      markers: true,
      toggleClass: "visible"
    }
  });
});

// Cover Image
let blogItem = gsap.utils.toArray(".blog-style-1 .blog-item__cover img");
blogItem.forEach((itemblogItem, index) => {
  let elemstrokeLight = gsap.to(itemblogItem, 0.5, {
    scrollTrigger: {
      trigger: itemblogItem,
      scrub: true,
      start: "100% 100%"
    },
    transform: "scale(1.2)"
  });
});

// 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"
    }
  });
});

// Correct marker position
if (document.querySelector(".gsap-marker-scroller-start")) {
  const markers = gsap.utils.toArray('[class *= "gsap-marker"]');

  bodyScrollBar.addListener(({ offset }) => {
    gsap.set(markers, {
      marginTop: -offset.y
    });
  });
}

              
            
!
999px

Console