Property StaggerChildrenSec
- Namespace
- Velvet
- Assembly
- Velvet.Docs.dll
StaggerChildrenSec
Delay interval (seconds) applied sequentially to each DESCENDANT Motion that inherits its active
label from this Motion (it declares variants but no own animate — see
Animate) when that ambient label changes: the i-th such inheriting
descendant, visited in document order, is delayed an additional DelayChildrenSec + StaggerChildrenSec
- i on top of its OWN DelaySec. 0 (default) means no stagger (every inheriting
descendant responds at the same time). Unlike AnimatePresence's own per-child enter/exit stagger
(
V.AnimatePresence(staggerSec:)), this orchestrates a PLAIN parent → child label propagation — no AnimatePresence boundary is required; toggling this Motion'sanimateprop is enough. A descendant with its OWN explicitanimateopts out of both the label inheritance and this stagger — it is driven by its own render, not this propagation (matching Framer Motion, where an explicitanimateoverride disconnects a component from its parent's variant propagation). The stagger index is transitive: an inheriting descendant with no stagger config of its own passes this orchestration through to ITS OWN inheriting children, who continue claiming from the SAME sequence.
public float StaggerChildrenSec { get; init; }
Property Value
- float
Remarks
Equivalent to Framer Motion's transition.staggerChildren for users migrating from Framer Motion.