What value should I use to change the opacity of an element? Opacity is set using a decimal where 0 is transparent, 0.5 is 50% and 1 is solid.