I'm working on an e-commerce web site. It has few products with multiple color variants. Each product has 3 options that can each have 3 different colours. For example:
Product 1 -> Option 2 -> Red
or
Product 1 -> Option 1 -> Black
Upon selecting the colour choice the product image needs to change to this colour to reflect the change.
Obviously, this could be achieved using multiple images. The only problem I have here is the sheer amount of images I would have to create, one for each possible combination.
I would prefer something which would simply layer the option on top of a base image.
Any ideas on updating colour options on an image without creating individual images for each option?
Something like this might give you a place to start:
Reference:
css filter to make elements one color