Tunable multiresponsive methacrylic acid based inverse opal hydrogels prepared by controlling the synthesis conditions.