Skip to content
Knowns UI
Get ProSign in

Resolve Entrance

A one-time entrance for the object a page opens on: it comes into focus, an outline draws itself around it, and one sheen crosses it. Under a second in all, and the final state at once with reduced motion.

On this page

Examples

On cue

With trigger="manual" the object waits in its start state until play turns true, for example after a headline has set or when a step finishes.

Installation

npx knowns-ui@latest add resolve-entrance
For Claude Code, Cursor or Codex: installs it and wires the props to your own data.

Props

children
ReactNode
The object. It is in the DOM and readable from the first render.
trigger
"mount" | "view" | "manual"
Default"view"
Play once mounted, once a third of it is in view, or when play turns true.
play
boolean
With trigger manual: plays when it becomes true.
outline
boolean
Defaulttrue
Draw an outline around the object; it stays once drawn.
outlineOffset / radius
number / number
Default10 / 20
Gap from the object to the outline, and the object's corner radius in px (the outline adds the gap).
sheen
boolean
Defaulttrue
One light band across the object at the end.
onDone
() => void
After the last beat; at once under reduced motion.
outlineClassName
string
Stroke colour and width of the outline, for example stroke-primary.

Beats

Focus
opacity, scale .96 to 1, 3px blur to sharp
Default0ms
420ms, ease out
Outline draws
stroke draws around
Default120ms
420ms, ease in-out
Sheen pass
one band, left to right
Default420ms
280ms, ease in-out
Reduced motion
final state
Default0ms
no sheen

Accessibility

  • The object is never removed or hidden from assistive tech; only its look waits for the entrance.
  • The outline and the sheen are decorative and aria-hidden.
  • It plays once. Re-renders do not replay it; change the key to play it again.

When to use

When to use

  • The object a landing page opens on (a card, a badge, a device) arriving once as the hero sets.
  • A new thing that was just made (a key issued, a pass printed) appearing on cue after the step that made it.

When not to use

  • Rows, toasts and anything seen many times a day: use Toast.
  • Pointing at the option to choose: use Shine Border.

Using with AI

Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:

  • Add the Knowns UI Resolve Entrance to my app and wire it to my own data.
  • I need the object a landing page opens on (a card, a badge, a device) arriving once as the hero sets. Set that up with the Knowns UI Resolve Entrance.
  • Which Resolve Entrance props do I need for a minimal setup? Show me a short example.

With the server connected, your assistant calls get_component({ name: "resolve-entrance" }) and search_docs({ query: "resolve entrance" }).

Need help?

Stuck on Resolve Entrance, or found something off? We read every message.