Shear fronts in slowly varying media