Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

111
Vistas
update window scroll position while using scrolltrigger and smoothscrollbar.js on wordpress divi

so i'm using gsap, scrolltrigger and smoothscrollbar.js with divi theme on wordpress.

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

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

bodyScrollBar.addListener(ScrollTrigger.update);

using above code, i've initialied smoothscrollbar and a fuction that says scrolltrigger to update scroll position as smoothscrollbar scrolls.

But the problem is that, I cannot use any of divi scroll animations as well as any $(window).scroll() or document.addEventListener('scroll', function() ) functions.

Is there any way where I can tell window to update scroll position just like I've told scrolltrigger to update scroll position.

Thanks in advance.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda