use CSS for setting opacity - add a class in JS