Utility functions for interactive animations
Members
Type Definitions
Object
# InteractionConfig
Properties:
Name | Type | Description |
---|---|---|
effect |
string
|
'attract' | 'repel' | 'follow' | 'burst' | 'gravity' | 'magnetic' | 'vortex' | 'wave' | 'elastic' |
strength |
number
|
Effect strength (0-1) |
radius |
number
|
Interaction radius in pixels |
continuous |
boolean
|
Whether effect continues after interaction ends |
Object
# InteractionPoint
Properties:
Name | Type | Description |
---|---|---|
x |
number
|
X coordinate |
y |
number
|
Y coordinate |
force |
number
|
Interaction force (0-1) |
type |
string
|
'mouse' | 'touch' |