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

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.

HTML

              
                <main>
  <section id="by-founders-for-founders" class="section__hero-banner   " style=" ">

    <!-- For SEO -->
    <h1 class="d-none">By founders, for founders</h1>
    <div class="hero-wrapper min-vh-100 vh-100 position-relative">

      <!-- Hero BG (absolute) -->
      <div class="hero-bg container-fluid h-100 w-100 position-absolute">
        <div class="row h-100">
          <div class="hero-lhs position-absolute h-100 top-0 bg-sandstone">
            <div class="hero-logo-lhs"></div>
            <div class="hero-logo-lhs-curtain bg-sandstone"></div>
          </div>
          <div class="hero-rhs position-absolute h-100 right-0 top-0 bg-sandstone-light">

            <div class="hero-logo-rhs"></div>
            <div class="hero-logo-rhs-curtain bg-sandstone-light"></div>
          </div>
        </div>
      </div>

      <!-- Hero FG (relative) -->
      <div class="hero-fg container container-xxxl h-100 position-relative">
        <div class="row h-100 align-items-center titles-wrapper">
          <div class="hero-lhs position-relative col-24">
            <p class="h1 fs-52 fs-sm-70 fw-normal text-end mb-0 pe-16 p-md-40 lhs-column-title">By<br class="d-sm-none"> founders</p>
          </div>
          <div class="hero-rhs position-relative col-24">
            <p class="h1 fs-52 fs-sm-70 fw-bolder text-start mb-0 ps-16 p-md-40 rhs-column-title">For<br class="d-sm-none"> founders</p>
          </div>
        </div>
      </div>
    </div>
  </section>
  <section id="our-vision" data-animation-trigger="true" class="section__fluid-blocks bg-primary text-white  " style=" ">

    <!-- For SEO -->
    <h2 class="d-none">Our vision</h2>

    <!-- Fluid Rows -->
    <div id="our-vision-row-47" class="fb-layout-row min-vh-100 vh-100 py-20 py-lg-40 fb-rich-aside100vh ">

      <div class="container container-xxxl min-vh-100 h-100">

        <div class="row min-vh-100 h-100 justify-content-center align-items-center">

          <div class="col-48 col-lg-43 col-xl-37 col-xxl-34   text-column">

            <div class="last-item-no-margin">
              <p class="fs-40 fw-medium" style="text-align: center;">Northcote was founded on a vision: Using our industry and first-hand experience to back the UK and Ireland’s most ambitious entrepreneurs.</p>

            </div>

          </div>
        </div>

      </div>
    </div>
  </section>
</main>
              
            
!

CSS

              
                #our-vision{ 

position: absolute;
top: 0;
left: 0;
width: 100%;}
              
            
!

JS

              
                // //* Hero section animation
if (document.querySelectorAll(".section__hero-banner").length > 0) {
  document.querySelectorAll(".section__hero-banner").forEach((section) => {
    const heroLogoLhs = section.querySelector(".hero-logo-lhs");
    const heroLogoRhs = section.querySelector(".hero-logo-rhs");
    const heroLhs = section.querySelector(".hero-lhs");
    const heroLhsText = section.querySelector(".lhs-column-title");
    const heroRhsText = section.querySelector(".rhs-column-title");
    const heroRhs = section.querySelector(".hero-rhs");
    if (heroLhs && heroRhs) {
      const lhsTimeline = gsap.timeline({
        scrollTrigger: {
          trigger: section,
          // markers: {startColor: "green", endColor: "red", fontSize: "18px", fontWeight: "bold", indent: 20},
          start: "top center",
          preventOverlaps: true,
          fastScrollEnd: true
        }
      });
      lhsTimeline
        .to(heroRhs, {
          width: "50%",
          duration: 1.5,
          delay: 0.3,
          opacity: 1,
          autoAlpha: 1,
          ease: "expo.inOut"
        })
        .to(heroLhsText, {
          autoAlpha: 1,
          opacity: 1,
          duration: 1.2,
          delay: -0.7,
          ease: "power3.inOut"
        })
        .to(heroRhsText, {
          autoAlpha: 1,
          opacity: 1,
          delay: -0.2,
          duration: 1.2,
          ease: "power3.inOut"
        });

      var tl = gsap.timeline({
        scrollTrigger: {
          markers: {
            startColor: "green",
            endColor: "red",
            fontSize: "18px",
            fontWeight: "bold",
            indent: 20
          },
          toggleActions: "play none none reverse",
          trigger: "main",
          scrub: true,
          pin: true,
          start: "clamp(top top)",
          end: "+=150%",
          preventOverlaps: true,
          fastScrollEnd: true
        }
      });

      tl.to(".titles-wrapper", { opacity: 0, ease: "none" });
      tl.fromTo(
        ".hero-logo-rhs-curtain",
        {
          scaleX: 1
        },
        {
          scaleX: 0,
          ease: "none"
        }
      );
      tl.fromTo(
        ".hero-logo-lhs-curtain",
        {
          scaleX: 1
        },
        {
          scaleX: 0,
          ease: "none"
        },
        "<"
      );
      tl.to(heroLogoLhs, { autoAlpha: 1, ease: "none" }, "<");
      tl.from("#our-vision", {
        yPercent: 100,
        opacity: 0,
        ease: "none"
      })
      // tl.to(heroLogoRhs, {width: 0, ease: "none"});
      // tl.to(heroLogoLhs, {width: 0, ease: "none"}, "<");
    }
  });
}

              
            
!
999px

Console