jquery-backstretch / jquery-backstretch

Backstretch is a simple jQuery plugin that allows you to add a dynamically-resized, slideshow-capable background image to any page or element. The image will stretch to fit the page/element, and will automatically resize as the window/element size changes.
http://www.jquery-backstretch.com
MIT License
3.91k stars 912 forks source link

Add a opacity on my image on backstretch #499

Closed cSarcasme closed 3 years ago

cSarcasme commented 3 years ago

hi, i had a class at backtretch and when this class is ad i had try to add a rgba with opacity in jquery and in css.the issue is in jquery orcss with the sme result it is working like half a second and after became normal with no opacity. Someone maybe have the solution(or better solution)? $('.backstretch').addClass('op'); $('.op').css('background', 'rgba(255, 0, 0, 1)');

Have a nice day

cSarcasme commented 3 years ago

i find a better way pu ta opacity on my image on gimp and add it on backstrech and give the url who i just want that