DEV Community

Discussion on: Have you ever seen foldable login form ?

Collapse
 
moopet profile image
Ben Sinclair

I can appreciate the effort that went into this, but why would you implement a transition that takes several seconds - especially if people make a mistake and then have to go back?

Having both forms on the same page but one only visible through running some script smells a little to me. You will need to style for the scenario where people don't have javascript running - and if you can make it work with both forms on the page, why not just have both forms on the page?

My final concern is with sharing links - say you have a link somewhere in your FAQ that talks about the benefits of signing up. As it stands, that link can't actually link to the registration form, but will present the login form and require the user take an extra step, and be taken out of what would otherwise seem like smooth navigation. You could address that by passing through a query parameter or fragment to tell the script which form to display first, though that probably gives you other problems instead.

Collapse
 
themodernweb profile image
Modern Web

I understand this but I just made these thing to show the power of Css and JS of course this form is not practical but I want people to let them know how to think like this. Thanks