The hanger springs back into shape.
Some of the energy you use to push the hanger backwards and forwards is being converted into heat energy.
To understand inelastic deformation, try these simple experiments using an old wire coat hanger.
1 - Make Elastic Deformations 2 - Make Inelastic Deformations 3 - Make Repeated Inelastic Deformations
1 - Make Elastic Deformations
2 - Make Inelastic Deformations
3 - Make Repeated Inelastic Deformations