My goal is to create a form that smoothly slides to the right, similar to the one seen on DigitalOcean's website when you click "Sign up using email" here: .
While the transition itself is relatively simple, I noticed that DigitalOcean uses 2 separate routes for this effect - one under /new and the other under /email. These routes appear to be distinct pages rather than just different states within a single route. How can I achieve this same functionality in NextJS?