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

119
Views
React bootstrap modal animate only on show OR on hide

I'm trying to have it so that I can go directly from one modal to another without flicker/animations for bootstrap Modals in react (using react-bootstrap), but it doesn't work because of the fade CSS class.

I'd like to set it so that the first modal a user opens animates, and the last one a user closes animates. So say I have 3 modals the user goes between:

1 => 2 => 3

Modal 1: fades in on open, no animation on close
Modal 2: no animation at all
Modal 3: no animation on open, fades out on close

How should I go about doing this? I've tried tinkering with the fade CSS class to no avail.

This feels like an anti-pattern, so maybe I don't really want to do this. What I'm trying to do is cleanly go from a Registration modal to an Account Setup modal, with it being seamless for the user.

about 4 years ago · Santiago Gelvez
1 answers
Answer question

0

Just reuse the same Modal component: on submit of the first and second form change the content via props and on the last form submit call the close modal method.

about 4 years ago · Santiago Gelvez Report
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!