Corex.Animation.Scale (Corex v0.2.0)

View Source

Dialog open/close animation when animation is js (opacity + scale).

<.dialog
  id="confirm"
  animation={:js}
  animation_config={%Corex.Animation.Scale{duration: 0.2}}
>

Set block_interaction to false to allow pointer input during the 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()
}