add trigger function for dom elements (might be usefull on revealjs slides, for example)