elbwalker docs
Search…
Available triggers
Walker.js comes with a bunch of pre-built triggers
You don't have to deal with event listener or mutation observer initialization anymore. Walker.js comes with a bunch of integrated triggers that will fire your event at the right moment.
Event
Definition
load
after loading a page when the DOM is ready
click
when the element or a child is clicked
visible
after the element has been in the viewport for at least 50% for one second
hover
each time the mouse enters the corresponding element
submit
on a valid form submission
custom
calling elbLayer.push(), see using JavaScript​
wait(n) (coming soon
⏳
)
n milliseconds after the page load
scroll(n) (coming soon
⏳
)
as soon as the user scrolls to the specified page depth (=n)
unload (coming soon
⏳
)
when leaving the page
Trigger names are predefined and need to be selected from the list while the action can be an arbitrarily defined name.
The click trigger uses the bubbling-up process. It will not work with stopPropagation or preventDefault.
Copy link