Attribute Toggle Interaction

Define actions that are triggered when a specific HTML attribute is added or removed on an element.

This interaction allows you to assign one set of actions for when the specified attribute is added or matches a given value, and another set of actions for when the attribute is removed or no longer matches the value.

Interaction Settings

Option Default Type Description
Attribute Value None Text Field

The name of the HTML event to listen for.

When this event is dispatched on the element, the assigned actions in this interaction will be triggered.