made animation happen on click of a link
added support for the ending part of a word