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

209
Vistas
How to animate a mapped array with React Spring (useTransition)

i am working on my portfolio and i just ran into an issue with React Springs useTransition.

I am mapping over an array of objects (single Projects) and i am filtering them with multiple checkboxes. What i am trying to achieve is to animate the process of filtering. So when a checkbox is checked, the not-matching items should fade out and collapse so that the remaining objects take their place.

Filtering all works fine, i just dont know where to setup the useTransition hook.

Please, can somebody help me with this, i am pretty new to javascript..

Here is a codesandbox: https://codesandbox.io/s/aged-frog-i2z2s?file=/src/Components/General.js

here is an example of what i want to achieve, maybe it helps to understand: https://codesandbox.io/s/react-spring-demo-change-border-colour-on-click-forked-7fdkl

Edit: Just recognized the codesandbox didnt work, so i updated it.

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