BackgroundParallax
in package
implements
BehaviorInterface
FinalYes
BackgroundParallax behavior for scroll-based background parallax.
The background_parallax behavior applies a parallax effect to the background of a component as the user scrolls, creating depth.
Tags
Table of Contents
Interfaces
- BehaviorInterface
- Interface for all ANF component behaviors.
Methods
- getType() : string
- Get the behavior type identifier.
- jsonSerialize() : array{type: string}
- {@inheritdoc}
Methods
getType()
Get the behavior type identifier.
public
getType() : string
Return values
string —The behavior type (e.g., 'parallax', 'springy').
jsonSerialize()
{@inheritdoc}
public
jsonSerialize() : array{type: string}