v-lazy-image
v-lazy-image copied to clipboard
background images lazy loading
@andreynazarov3, Thanks for your work. How about lazy loading background-image for div?
Hmm... couldn't you place this component inside the div? What's exactly the requirement?
@alexjoverm no i`m toking about lazy background-image loading, like css attribute. Some block have img like background, first loading small background image with blur, and then loading big background image.
<div v-bg-lazy= "{ 'miniBgImg' : '/...', 'bigBgImg': '/...' }"
Could be useful to play with background position, like
background-position:center center;
background-repeat:no-repeat;
background-size:cover;
I think that'd require some rework in the library... I'm open to ideas if you want to go for it