implement timer based animaation