Corex.Animation.Scale (Corex v0.1.0-beta.5)

View Source

Web Animations config for dialog when animation is js: opacity and transform scale on the content node; opacity only on the backdrop (handled in the hook). No height keyframes, no translate.

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 lock using client defaults when the data-anim-scale-* attributes are absent.

Set block_interaction to false to allow pointer input on the dialog shell during the built-in WAAPI transition.

Summary

Types

t()

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

Functions

to_dataset(a)

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