Skip to content

AnimationTiming

Base classes

Name Children Inherits
BaseModel
pydantic.main
!!! abstract "Usage Documentation"

⋔ Inheritance diagram

graph TD
  1596773471["models.AnimationTiming"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  3879467795 --> 1596773471
  2751680898 --> 3879467795

🛈 DocStrings

Bases: BaseModel

Timing of one declarative animation, as reported by the browser.

Source code in src/framesheet/models.py
class AnimationTiming(BaseModel):
    """Timing of one declarative animation, as reported by the browser."""

    kind: Literal["smil", "css-animation", "css-transition", "web-animation"]
    target: str | None = None
    name: str | None = None
    start: float
    """Begin / delay in seconds (may be negative)."""
    duration: float
    """Duration of one iteration in seconds."""
    iterations: float | None
    """Iteration count; ``None`` means infinite."""
    direction: str = "normal"
    period: float
    """Seconds until the animation looks the same again (2x duration for alternate)."""
    end: float | None
    """End of the active interval in seconds; ``None`` if infinite."""
    transform_box: str | None = None
    """Computed ``transform-box`` of an SVG target whose transform is animated by CSS."""

duration instance-attribute

duration: float

Duration of one iteration in seconds.

end instance-attribute

end: float | None

End of the active interval in seconds; None if infinite.

iterations instance-attribute

iterations: float | None

Iteration count; None means infinite.

period instance-attribute

period: float

Seconds until the animation looks the same again (2x duration for alternate).

start instance-attribute

start: float

Begin / delay in seconds (may be negative).

transform_box class-attribute instance-attribute

transform_box: str | None = None

Computed transform-box of an SVG target whose transform is animated by CSS.

:fa-brands-github: Show source on GitHub