Corex.Animation.Height (Corex v0.2.0)

View Source

Accordion and tree-view panel animation when animation is js (opacity + height).

<.accordion
  id="faq"
  animation={:js}
  animation_config={%Corex.Animation.Height{duration: 0.25}}
>

Set block_interaction to false to allow pointer input while a panel animates.

Summary

Types

t()

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