Turn overflow off and on in an animation

Is there a way to turn overflow off and on in an animation like legacy