Yes this works as long as the hype-function is triggered by a click or touch-event on the element itsself!
More Info on Data-Attributes: