Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

208
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!