As the raft of bubbles is stressed with the slider, dislocations move into and out of the grains and their boundaries.
A metal bobby pin is heated until red hot, then allowed to cool slowly; this process is called annealing. The annealed bobby pin is very flexible.
The tempering process, which involves heating a hardened bobby pin then cooling slowly, transforms the brittle metal into springy metal.
An annealed bobby pin is heated, then cooled quickly; this process is called hardening. The hardened bobby pin is brittle.