Not sure what the syntax should be for setting the background image and gradient (so that I can darken the image)
I can set the background image but not sure how I can set the linear gradient
holder.style.background = 'url(' + event.target.result + ') no-repeat';
holder.style.backgroundSize = 'cover';
holder.style.backgroundlinearGradient = 'rgba(0, 0, 0, 0.7)' //this doesn't work
Also, can I combine more than one property in style.background to set all 3 size and gradient and image in one line?
Note that I cannot use jquery and want to do this by setting dom attributes if possible.
linearGradientis not a CSS property. It is a value of thebackgroundproperty. Perhaps you are looking for thefilterproperty if you want to darken the image.