With our themes, you can easily create an image gallery for your variant options.
Step 1: Create a Variant Metafield
Go to your Shopify admin → Settings → Metafields and Metaobjects.
Select Variants and click Add definition.
In the Name field, enter your preferred name (e.g., Variant Image Gallery).
For the Type, choose File, and set it to List of files.
You should now see a screen similar to the one below:
Step 2: Assign Images to Variants
Go to Products → open the product you want to edit.
Scroll down to Variants and click the variant you want to update.
You’ll now see the metafield you just created.
Select all the images related to that variant option and click Save.
Step 3: Connect the Metafield in the Variant Picker
Open the Variant Picker element settings in your theme editor.
Under Variant Gallery, select the metafield you created for variant images.
To find the metafield key, return to Settings → Metafields and Metaobjects → Variants.
Copy the key and paste it into the Variant Picker element settings.
As soon as you connect the metafield, the images you added will automatically display for each variant option.