Skip to main content

Animations

Hosanna UI offers three complementary animation layers. Start simple, then move up as you need more power.

Aggregate View Transitions

  • Screen-level transitions for NavController/TabController (e.g., Fade, Simple).
  • Configured via style.json keys; optionally override per call.
  • Best for navigating between screens; keeps focus and lifecycle correct.

See: Aggregate View Transitions

ViewJsonAnimator (low-level)

  • Fast renderer-field tweening using JSON maps (many nodes at once).
  • Ideal for simple property animations where you control precise fields.
  • Pair with ViewAnimator for a single renderer.

See: ViewJsonAnimator

HosannaViewAnimator (high-level)

  • State-driven animations across a view subtree using logical state keys.
  • Automatically maps logical fields to renderer updates and persists final state.
  • Best for orchestrated UI effects spanning multiple views.

See: HosannaViewAnimator