add dom offset to keyframe