EAnimateOnScroll Animate on scroll
Examples
Scroll into view
Repeated entry
Once only
Custom viewport
Slide in
Properties
PropertyDescriptionValues and default
contentaliasContent slot; declare QML child objects directly inside the component.
Default
body.dataonceboolPlay only the first viewport entry animation.
Default
falsedistancerealAnimation displacement in pixels.
Default
24durationintDuration of each entry or exit animation in milliseconds.
Default
300targetItemItem receiving the animation; defaults to the internal content container.
Default
bodyviewportItemOptional viewport; ancestor clipping boundaries still apply.
Default
nullenterEffectstringEAnimation effect name used on viewport entry.
Default
"fadeIn"leaveEffectstringEAnimation effect name used on viewport exit.
Default
"fadeOut"inViewportboolRead onlyWhether the control intersects the visible viewport.
Default
observer.inViewportSignals
SignaturePurpose
exited()Emitted when the component leaves the viewport.
entered()Emitted when the component enters the viewport.