{
  "id": 21878523,
  "title": "What I learned making a wipe sign in and sign up",
  "url": "https://urgent.news/2026/11/25/what-i-learned-making-a-wipe-sign-in-and-sign-up",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-25T23:01:45.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/uimotion/what-i-learned-making-a-wipe-sign-in-and-sign-up-k20"
  },
  "original_language": "en",
  "account": "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).\n\nA 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.\n\nThe .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.",
  "summary": "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…",
  "key_points": [
    "Sign in and sign up card uses two faces on one panel with shared grid cell",
    "2px edge element animates across wipe front with cubic-bezier timing",
    "Inert and aria-hidden hidden form gains focus after 380ms delay"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}