Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

269
Visualizações
Why scrolling down faster than scrolling up with GSAP?

I'm new to GSAP and JS in general, I'm having some problems figuring out why I have two different speeds while scrolling up and down.

There's also a problem once it scrolls all the way up that automatically reverse the animation, this is not wanted.

https://codepen.io/Mahanon/pen/rNdedwa

gsap.registerPlugin(ScrollTrigger);
gsap.to('#bottom', {
    "top": "0",
    duration: 1.3,
    ease: Quart.easeOut,
    scrollTrigger: {
        trigger: '#bottom',
        start: 'top bottom',
        end: 'top top',
        toggleActions: 'restart reverse restart reverse'
    },
});
about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda