Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

background images lazy loading #24

Open
AlexeyShaykov opened this issue Jul 23, 2018 · 4 comments
Open

background images lazy loading #24

AlexeyShaykov opened this issue Jul 23, 2018 · 4 comments

Comments

@AlexeyShaykov
Copy link

@andreynazarov3, Thanks for your work.
How about lazy loading background-image for div?

@alexjoverm
Copy link
Owner

Hmm... couldn't you place this component inside the div? What's exactly the requirement?

@AlexeyShaykov
Copy link
Author

AlexeyShaykov commented Jul 23, 2018

@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': '/...' }"  

@rocchidavide
Copy link

Could be useful to play with background position, like

background-position:center center;
background-repeat:no-repeat;
background-size:cover;

@alexjoverm
Copy link
Owner

alexjoverm commented Feb 13, 2022

I think that'd require some rework in the library... I'm open to ideas if you want to go for it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants