Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

110
Views
Gsap ScrollTrigger : Make my section translate on scroll

I'm trying to remake scroll effect from this website : https://wemakefab.com/

gsap.registerPlugin(ScrollTrigger);
gsap.to(".scroll-content",{
    scrollTrigger:{
        trigger:".scroll-content",
        start:'top top',
        end:'bottom bottom',
        scrub:1.2,
        markers:true
    },
    y:-document.querySelector('.scroll-content').offsetHeight
})

It actually translate on scroll but it also create some huge white space at the end of the website. On the exemple they are putting css overflow:hidden on body but for me it block completly the scroll.

<div class="scroll-content">
            <section class="green"></section>
            <section class="blue"></section>
            <section class="green"></section>
            <section class="blue"></section>
            <section class="green"></section>
            <section class="blue"></section>
            <section class="green"></section>
            <section class="blue"></section>
            <section class="green"></section>
            <section class="blue"></section>
        </div>
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

To fix this, I finally put a container around the scroll-content with an height of 100vh and it's all seems to work like a charm

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!