I know how to set it in a style sheet. This explains how to get it using JS...
I tried this to set it:
window.getComputedStyle( myEl ).setPropertyValue( 'opacity', 0.7 );
and got
setPropertyValue is not a function.
Obviously I can use JQuery css( ... )
... in the min.js
file I found there were no fewer than 10 matches for opacity
. I didn't have a clue about what was going on.
This is Firefox, by the way.
By modifying the style
property.
myEl.style.opacity = 0.7;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With