MOUSE X

See the Pen rdNOZJ by Héctor (@hector39) on CodePen.

The mouseX is a variable that is determined by the value x that the mouse gives, we put it in the x of all the figures and then subtract or add the values depending on where we want the figures.