How to make a dynamic product comparison

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