animation using timer and transition