How can I make product variant images clickable on a website?

I’ve been building a website for a customer but for the product page they want the variants to be clickable images of which I am struggling to incorporate into the store, would anyone be able to help whether there is a specific code I need to incorporate into this or if there is a simple design solution to make this?

Thanks in advance