AFAICT many student participants in the revolution thought they were fighting to install a relatively liberal democratic system, but when the regime actually fell it was hardline religious groups who were organised enough to fill the power vacuum quickly.
So I'm not sure it was so much the pendulum swinging the other way, as an organised group who were poised to take over when chaos ruled.
But my understanding is limited, so perhaps my view is poorly informed.