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

178
Vistas
Changing the sensitivity of my scroll animation?

I would like to change the sensitivity of animation on my webpage, it's a scroll-based animation with an image sliding all the way to the right when you scroll down. Its speed is controlled by how fast you scroll and its position is determined by where you are on the webpage(scroll-wise). This is a code snippet from javascript

    <script>
        var movement = document.getElementById("car")
        window.addEventListener("scroll", function() {
            car.style.backgroundPosition = +window.pageYOffset+"px";
        })
    </script>

The end result works, but I find it too slow and I would like to change how fast the image moves across the screen/how sensitive it is to the scroll input.

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