What I learned making a wipe sign in and sign up
One panel, two faces, and a line that leads the wipe. A sign in and sign up card where a link wipes the other form open from right to left with a thin edge line leading it. The trick Both forms share one grid cell, and the sign-up face is revealed by transitioning clip-path from inset(0 0 0 100%) to inset(0). A 2px edge element animates across at the same time with the same cubic-bezier, so it…
A sign in and sign up card allows for a smooth transition between two forms. The card features one panel with two faces and a line that guides the wipe effect. The trick lies in both forms sharing the same grid cell, with the sign-up face appearing through a clip-path transition from inset(0 0 0 100%) to inset(0).
A 2px edge element animates across the wipe front, maintaining alignment with the same cubic-bezier timing function. The hidden form is marked as inert and aria-hidden, preventing it from receiving focus. Upon activation, the first input of the newly revealed face automatically gains focus after a 380ms delay.
The .stack class establishes a relative positioning and grid layout with hidden overflow. The .f class assigns a grid area and background color, while the .f2 class defines the initial clip-path and its cubic-bezier transition. To switch between the forms, the stack class toggles the 'two' state, revealing the sign-up face by setting its clip-path to inset(0) and disabling inertness for the sign-in form. The prompt for this technique is available at uimotion.app.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to