Script Actions 🧪
Invoke a script as an SA5 Action.
Use cases;
Start a video after an interaction has completed
Display a pop-up in the middle of an interaction sequence
Technical notes
sa-action-script = ( ... )
This Action requires an SA5 config block
This Action requires an SA5 config block
This Action requires an SA5 config block;
Actions
Triggers;
User action
Click
Scroll
Hover
Variable change ( reactive );
e.g. x > 1000
Timer
Interaction step
Form submit
Alpine.js triggers
Actions;
Click ( other elements )
Interaction
Scroll ( other elements )
Code execution
Class add/remove
Form submit
Mechanic;
Define triggers
e.g. attribute wfu-click = ( name )
Last updated
Was this helpful?