[cyril] added factory method for animation.