LiveStyle.Manifest.ViewTransitionClassEntry (LiveStyle v0.13.0)

View Source

Entry structure for view transitions.

Summary

Functions

Gets the ident from a view transition entry.

Creates a new view transition entry.

Gets the styles from a view transition entry.

Types

t()

@type t() :: [ident: String.t(), styles: keyword()]

Functions

ident(entry)

@spec ident(t()) :: String.t()

Gets the ident from a view transition entry.

new(ident, styles)

@spec new(
  String.t(),
  keyword()
) :: t()

Creates a new view transition entry.

Parameters

  • ident - The CSS class name (e.g., "x1abc123")
  • styles - The view transition styles (keyed by pseudo-element)

Examples

ViewTransitionClassEntry.new("x1abc123", [
  old: [animation_name: "fadeOut"],
  new: [animation_name: "fadeIn"]
])

styles(entry)

@spec styles(t()) :: keyword()

Gets the styles from a view transition entry.