The working principle of the extension spring is opposite to that of the compression spring. The compression spring acts in the opposite direction when it is compressed, and the extension spring acts in the opposite direction when it is stretched or pulled apart.
eBay