How can I make the button to triger switch the photo gallery?

How can I make the button to triger switch the photo gallery?

Here with the website showing what I want to do: https://www.warmcarehk.com/collections/solution/products/anti-wandering-system

On the isometric cartoon, When I click the white ball that will be switch the product on the right hand side.

Hi,
you need to add onClick() event to the relevant buttons.
Then change the displayed image.
See an example here .