AnimatedNode class
AST node that wraps child with a CSS animation described by animation.
DOM Mounting and SSR
- SSR (
renderToHtml): Emits a<style>@keyframes ...</style>block (deduplicated by animation name per render pass) and a wrapper<div>carrying theanimation:inline style. - Browser (
mount): Injects the@keyframesrule intodocument.headonce per animation name for the lifetime of the page, and creates a wrapper<div>with the animation's inline style enclosing child.
Constructors
- AnimatedNode({required BloomNode child, required BloomAnimation animation})
-
Creates an animated wrapper descriptor enclosing
childwithanimation.const
Properties
- animation → BloomAnimation
-
The animation configuration describing keyframes, duration, timing, and fill mode.
final
- child → BloomNode
-
The descriptor tree enclosed within the animated wrapper
<div>.final - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited