vue-lazyload icon indicating copy to clipboard operation
vue-lazyload copied to clipboard

Linear-gradient on lazy-backgrounds

Open lupas opened this issue 6 years ago • 3 comments

Hello there

I used to do the following to darken my background photos with a single line of css:

background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(image.png);

Now with vue-lazyload, I can't figure out a simple way to do the same. Any ideas?

lupas avatar Aug 31 '19 16:08 lupas

Yip, would also be interested in this.

fritzfr avatar Oct 17 '19 15:10 fritzfr

Set linear-gradient on an overlay, that's work for me.

<div class="wallpaper" v-lazy:background-image="wallpaper">
    <div class="wallpaper-overlay"></div>
</div>

The z-index of the overlay needs to be lower than the background div.

backrunner avatar Nov 25 '19 09:11 backrunner

Set linear-gradient on an overlay, that's work for me.

<div class="wallpaper" v-lazy:background-image="wallpaper">
    <div class="wallpaper-overlay"></div>
</div>

The z-index of the overlay needs to be lower than the background div.

Thank you! It's worked 🥳

harrytran998 avatar Dec 07 '19 03:12 harrytran998