added offset object to account for delays in css rotation