A switch from alpha-helical to beta-strand conformation during co-translational protein folding.