Trigger

A Trigger can be created using the useTrigger hook and can be used inside the triggers property to trigger a desired animation. When called as a function without arguments, it will "trigger" and thus play all referenced animations. Triggers are useful for creating animations that need to play on certain user interactions, such as clicking on, or hovering over an element.

Call signature

1
trigger()

Attributes

called: number

A number representing the amount of times the trigger has been called.