improvement in how the animation works

Signed-off-by: Ruben Mendez <ruben.mendez@gmail.com>