Added animation-type via data attribute

I just have added the functionality to set the animation-name via a data-attribute, because I got troubles when I set the animation-name before the 'animated' class had added in.

Edit: I am using Chrome 34.01 dev version