Controlling the direction of curve extrusion
Consider changing the Tilt, In Edit Mode of the curve, N for properties, you will see a tilt angle which you can change:


Consider a lattice modifier.  Animate the strength of the modifier if that suits you

Consider a simple deform modifier