Component for handling CSS3 animations easily with Javascript