Skip to content
Hazine

Comparison and reveal

0 of 3 shipped. Nothing has shipped here yet. The list below is what this family will hold, and how each structure differs.

Planned 3

  • Before and after slider

    Continuous spatial reveal driven by a real slider (role slider, arrow keys move two percent, Page keys ten, Home and End jump to each side, aria-valuetext such as '40 percent before') with pointer capture for drag and a 44px handle target.

  • Hover and focus reveal

    Binary swap triggered by hover, focus-within or an explicit toggle button, with the hidden layer kept in the accessibility tree so its content and link are always reachable; Escape dismisses the layer.

  • Toggle compare

    Whole-frame A/B swap at identical coordinates through a radiogroup plus a press-and-hold peek, instead of a spatial split; works for non-image content such as two UI states.