added animation-type over data attribute

I just have added the functionality to set the animation-name over a data-attribute, because I got troubles when I set the animation-name before the 'animated' class had added in.