Class Animation
Animation instance.
public sealed record Animation : IEquatable<Animation>
- Inheritance
-
Animation
- Implements
- Inherited Members
Constructors
Animation(string, string, bool, string, double, double, double, string)
Animation instance.
public Animation(string Id, string Name, bool PausedState, string PlayState, double PlaybackRate, double StartTime, double CurrentTime, string Type)
Parameters
IdstringAnimation's id.
NamestringAnimation's name.
PausedStateboolAnimation's internal paused state.
PlayStatestringAnimation's play state.
PlaybackRatedoubleAnimation's playback rate.
StartTimedoubleAnimation's start time. Milliseconds for time based animations and percentage [0 - 100] for scroll driven animations (i.e. when viewOrScrollTimeline exists).
CurrentTimedoubleAnimation's current time.
TypestringAnimation type of Animation.
Properties
CssId
A unique ID for Animation representing the sources that triggered this CSS animation/transition.
public string? CssId { get; init; }
Property Value
CurrentTime
Animation's current time.
public double CurrentTime { get; init; }
Property Value
Id
Animation's id.
public string Id { get; init; }
Property Value
Name
Animation's name.
public string Name { get; init; }
Property Value
PausedState
Animation's internal paused state.
public bool PausedState { get; init; }
Property Value
PlayState
Animation's play state.
public string PlayState { get; init; }
Property Value
PlaybackRate
Animation's playback rate.
public double PlaybackRate { get; init; }
Property Value
Source
Animation's source animation node.
public AnimationEffect? Source { get; init; }
Property Value
StartTime
Animation's start time. Milliseconds for time based animations and percentage [0 - 100] for scroll driven animations (i.e. when viewOrScrollTimeline exists).
public double StartTime { get; init; }
Property Value
Type
Animation type of Animation.
public string Type { get; init; }
Property Value
ViewOrScrollTimeline
View or scroll timeline
public ViewOrScrollTimeline? ViewOrScrollTimeline { get; init; }