Implements basic time-based animation