AppearAnimation
in package
implements
AnimationInterface
FinalYes
Appear animation for components.
The appear animation causes a component to appear instantly when it enters the viewport. This is the simplest animation type.
Tags
Table of Contents
Interfaces
- AnimationInterface
- Interface for all ANF component animations.
Properties
- $userControllable : bool|null
- Whether the animation is controllable by user scroll position.
Methods
- getType() : string
- Get the animation type identifier.
- jsonSerialize() : array<string, mixed>
- {@inheritdoc}
- setUserControllable() : $this
- Set whether the animation is user controllable.
Properties
$userControllable
Whether the animation is controllable by user scroll position.
private
bool|null
$userControllable
= null
Methods
getType()
Get the animation type identifier.
public
getType() : string
Return values
string —The animation type (e.g., 'fade_in', 'move_in').
jsonSerialize()
{@inheritdoc}
public
jsonSerialize() : array<string, mixed>
Return values
array<string, mixed>setUserControllable()
Set whether the animation is user controllable.
public
setUserControllable(bool $userControllable) : $this
When true, the animation progress is tied to scroll position, allowing users to scrub back and forth through the animation.
Parameters
- $userControllable : bool
-
Whether user can control the animation.