hover
This method can be used to attach mouseenter and mouseleave event listeners to the elements in the collection.
// Attach mouseenter and mouseleave event listeners to the elements
hover: function(enterHandler, leaveHandler) {
this.elements.forEach(function(element) {
element.addEventListener("mouseenter", enterHandler);
element.addEventListener("mouseleave", leaveHandler);
});
return this;
}