Observe resize
Description:
Develop a Resize Observer and connect it to a specific element. Trigger the specified callback function whenever the observer activates.
{
"type": "dom_observer",
"action": "observe_resize",
"args": {
"element": "body",
"callback": "$context.resize"
}
}
Remove resize observer
Description:
When no longer required you can free the observer using this action.
{
"type": "dom_observer",
"action": "unobserve_resize",
"args": {
"element": "body"
}
}