LiveStyle.Manifest.KeyframesEntry (LiveStyle v0.13.0)

View Source

Entry structure for @keyframes animations.

Summary

Functions

Gets the frames from a keyframes entry.

Gets the ident from a keyframes entry.

Creates a new keyframes entry.

Types

t()

@type t() :: [ident: String.t(), frames: list()]

Functions

frames(entry)

@spec frames(t()) :: list()

Gets the frames from a keyframes entry.

ident(entry)

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

Gets the ident from a keyframes entry.

new(ident, frames)

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

Creates a new keyframes entry.

Parameters

  • ident - The CSS animation name (e.g., "x1abc123")
  • frames - The keyframe definitions

Examples

KeyframesEntry.new("x1abc123", ["0%": [opacity: 0], "100%": [opacity: 1]])