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

101
Views
How to change order and scale list items in React - with animations

I know there are similar questions around here in SO, but I couldn't find one that addressed my case.

I'm using React and I have a component that maps over an array and renders its items as a list. They are shown one besides the other and the idea is that when you select one of them the one that is === params (gotten through useParams) is positioned in the middle and scaled up. Lets say I have this when nothing is selected:

Songs Artists Albums

When you select Songs, it's into this below (I'm using bold to simulate size increase, but the idea is that the word will be actually bigger, as if you changed the font from, say, 20px to 30px):

Albums Songs Artists

The same goes for when you select Artists (or Albums, for that matter):

Artists Albums Songs

The transition should be animated. The list can either be actually rotated (keeping the order of elements) or just the selected one being moved to the center, whichever is easier to achieve.

So, any suggestions?

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!