Teebo Posted August 5 Share Posted August 5 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 More sharing options...
mvaneijgen Posted August 5 Share Posted August 5 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! 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now