Springy
in package
implements
BehaviorInterface
FinalYes
Springy behavior for device tilt-based movement.
The springy behavior makes a component respond to device tilt with a spring-like motion, creating a subtle 3D effect as the user moves their device.
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}