Before and After Slider
Two photographs of one view with a handle between them that uncovers more of either, by drag or arrow keys.
About the Aeris Before and After Slider
Two photographs of one view with a handle between them: drag it, or move it with the arrow keys, to uncover more of the before or the after picture. The frame has 12 px corners; "Before" is a glass tag and "After" a white one at its top corners; the handle is a white line with a round grip. A native range input does the work, so it is keyboard- and touch-ready, and at rest the split sits in the middle. Take both pictures from one spot. Client component.
It is part of Aeris: white pages, soft grey cards, one electric blue. The style’s 92 pieces share one set of tokens, type and motion, in a light and a dark theme, so whatever you take from it fits together.
To put it in your project, copy the prompt into Claude Code, OpenAI Codex or Cursor, or add it by hand. The documentation walks through both.