Animation with adjustable materials?

Hi all,

I have been driving myself insane with making a decision on how to export my grasshopper work products into a website as an animation. At the moment small animations formed by animating the slider and exporting as PNGs seems the most rational way until higher quality images would be required and the use of render engine could be employed.

But then I got an idea that it would be awesome if I could replace the material finish of the products whilst the animation is happening. Is there a way to have some sort of prebaked data with materials changeable at seperate stage or would it mean that I have to create each possible combination of animations and materials?

Almost like a file format which takes speed advantage from prebaked geometry, but has a dynamic material choice if that makes sense?

Regards,

Jonas Blazinskas