I have been struggling with this for a few days. I need somebody to steer me in the right direction. I have been searching on the web. I am not sure if I took the right approach
Using jQuery lettering plugin
if you were not there, else I would not have won. $(".word_split").lettering('words'); $('.word_split').mouseover(function(event) { var word=event.target.innerHTML; if (word == "else") alert("Yep"); });
if you were not there, else I would not have won.
$(".word_split").lettering('words'); $('.word_split').mouseover(function(event) { var word=event.target.innerHTML; if (word == "else") alert("Yep"); });
here's a demo: jsFiddle