To improves experience user or marketing, it can be nice to add an action to run the javascript code after an action.
When opening a modal, after the animation it is good to focus on a field to improves UX.
Or to run an event to send data to a third-party app as HubSpot or Segment.io.
Or to facilitate the animation complex.
WDYT?