Jump to content
Search Community

Implement multistep form like Typeform

Teebo test
Moderator Tag

Recommended Posts

Hi,

 

How can I achieve a similar multi-step form like the following: https://forming-typeform.vercel.app/

I am challenged by the the positioning of each form section in the center after  scroll os done.

I find it challenging also to have the side nav buttons to handle the scroll direction accordingly.

Any ideas on implementing this with gsap or pure JavaScript and CSS will be appreciated.

See the Pen ZEJyxZr by Teebo (@Teebo) on CodePen

Link to comment
Share on other sites

Hi @Teebo indeed sliders can be really complicated, some years back I've tried to make a slider for my self which I now use as a bases to start from. 

 

I've written a lot of comments in the code to explain certain parts, it is by no means perfect, but maybe it helps you with parts you're struggling with. This slider always animates between two slides, so it doesn't matter if it is animating between 1 and 2 or 1 and 4.

 

See the Pen GREebPK?editors=0010 by mvaneijgen (@mvaneijgen) on CodePen

 

Personally I use codepen to try out new ideas, I usually then just keep forking my pen to try out different ideas, either because I think it could be better or my original idea was not working. Usually at version 10 I got something I'm happy with. Creating forks of your pen will allow you to fall back at earlier ideas if something new is not working. Here is an example of that, these are all my 'failed' attempts at getting the basics of a slider to work https://codepen.io/collection/OLwGmW?cursor=eyJwYWdlIjoyfQ==

 

Hope it helps and happy tweening! 

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...