How to make a dynamic product comparison

Does someone knows how to chose two or three element to compare, like go pro does it GoPro Camera Comparison | GoPro the idea is to choose and change the elements.