Optional onThe player has completed an animation.
Optional onThe trigger has been connected to the Element.
Optional onThe trigger has been disconnected from the Element.
Note: Remember to remove any potential event listeners you assigned earlier in this trigger.
Optional onThe player has rendered a frame.
Optional onThe player is ready. Now you can control the animation and icon properties with it.
Optional onThe player was refreshed, for example, due to icon customization.
Interface for triggers. Triggers provide interaction chains that can be handled by Element. Implement this interface when creating a new trigger. You can access the current player, element, and targetElement from the trigger's constructor.
Example: