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

How to use v-lazy:background-image on HTML (NOT VUEJS)

Open felix2056 opened this issue 4 years ago • 2 comments

I want to lazyload images outsite the Vue instance.

This works for regular images

<div v-lazy-container="{ selector: 'img' }">
  <img data-src="//domain.com/img1.jpg">
  <img data-src="//domain.com/img2.jpg">
  <img data-src="//domain.com/img3.jpg">  
</div>

But in the case where a div tag has a background image, how do I lazyload it? Again on normal HTML not VUE

felix2056 avatar Nov 02 '20 15:11 felix2056

I'm interested too

daaner avatar Apr 06 '21 22:04 daaner

curious

luckstar77 avatar Oct 19 '21 01:10 luckstar77