Use ticker to synchronize animation thread