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

CHR-onicles/animated-stepper-form

Folders and files

NameName
Last commit message
Last commit date

Latest commit

3c3921a · Jan 20, 2024

History

31 Commits
Oct 29, 2023
Nov 3, 2023
Oct 24, 2023
Nov 12, 2023
Oct 24, 2023
Oct 24, 2023
Oct 24, 2023
Oct 24, 2023
Oct 29, 2023
Nov 4, 2023
Nov 3, 2023
Jan 20, 2024
Nov 3, 2023
Oct 24, 2023
Oct 24, 2023
Oct 24, 2023
Oct 24, 2023

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