I am wanting to lazyload an image into the css background tag, not the background-image tag because I also have a semi-transparent overlay which needs to be applied in the following fashion:
background: linear-gradient(to bottom, rgb(255, 255, 255), rgba(255, 255, 255, 0.60) 75%), url("myimage.jpg") scroll bottom no-repeat;
Currently I am using the jquery.lazy library (https://github.com/eisbehr-/jquery.lazy/) but I'm open to using any lazyloading library as long as it supports fade transitions. How could I accomplish this?
Also, I'm not sure how these plugins work but if they simply overwrite anything in the target tag like simply overwriting what is in the background tag to add the image - that obviously won't work as that will overwrite my semi-transparent overlay.
Thanks!