Corex.Animation.Height (Corex v0.1.0-beta.2)

View Source

Web Animations config for accordion and tree-view panel open/close: opacity and height (scrollHeight) keyframes, no scale.

to_dataset/1 is merged on the host only for js. Custom animation does not use this on the server; the hook may still apply an optional root pointer lock with client defaults when the data-anim-height-* attributes are absent.

Set block_interaction to false to allow pointer input on the component root while a panel animates; default true blocks until the built-in WAAPI transition finishes.

Summary

Types

t()

@type t() :: %Corex.Animation.Height{
  block_interaction: boolean(),
  duration: float(),
  easing: String.t(),
  opacity_end: float(),
  opacity_start: float()
}

Functions

to_dataset(a)

@spec to_dataset(t()) :: %{required(String.t()) => term()}