Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

CHR-onicles/animated-stepper-form

Repository files navigation

Animated Stepper Form

Experimenting with an animated stepper form using a carousel.

 

Screenshot

Animated form

 

Link

Live project here

 

Technologies used

  • React
  • Typescript
  • Styled Components
  • Alice carousel

 

FAQs (for future me)

Why use a carousel?

I did try doing everything myself, but faced issues around updating the form state and the custom animation simultaneously. Too much time was being spent there and I thought I could easily bypass that whole shenanigan by utilizing a carousel.

Pros?
  • Definitely less CSS and custom animations. Big W.
  • No need for extra logic aside basic form controls to prevent a user from moving to the next step prematurely.
Cons?
  • Alice behaves a little unpredictably sometimes.
Can you use this in other projects?

Abso-fruitly!

 

Compare against Swiper carousel here