Urgent.News

What's breaking now, across hundreds of outlets.

Tech

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

Read the original at dev.to →

Report a problem with this story

More in Tech

yolowpdf 0.2.0: Rebuilding the Math That PDF Throws Away

yolowpdf is a pure-Rust PDF-to-Markdown library that parses the format itself — no Poppler, no MuPDF. Version 0.2.0, released this week, is a consolidated release with two halves: the PDF core learned to reconstruct two-dimensional mathematics from glyph geometry, and the OCR side open-sourced its model suite.

  • Yolowpdf 0.2.0 enhances PDF to Markdown conversion without external tools
  • Reconstructs 2D mathematics from glyph geometry for accurate representation
  • OCR side open-sourced with five models: detection, multilingual, Latin, layout, formula

More from Wednesday 25 November →