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

250
Vistas
Animate scroll after 'mouseup' event in javascript

I'm creating a simple slide with the scroll, but the problem is when the 'mouseup' event happens, the animation scroll-behavior: smooth; that I programmed in css. I also added the transition in my React code to try to solve the problem, and it didn't help.

The event I expect is that when the pointer is being dragged, the panel animates the scroll with the smooth event. And what is happening now and when you release the cursor the scroll has no animation and happens quickly in the blink of an eye. I hope you understood.

https://stackblitz.com/edit/nextjs-rzaxxp?file=components%2FScrollSlide.jsx

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

The goal is a bit unclear and your explanation is not easy to follow, however, if you just want to create a slider/carousel, don't try to invent the wheel, you could just simply use SwiperJS.

I'm using it for quite some time and so far this is the best slider/carousel I've ever used.

Easy to set up, great examples, available for vanilaJS, React/Next, Angular, Vue...

about 4 years ago · Juan Pablo Isaza Denunciar
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