Using alarms for animation