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

Work with bgLazyLoad #7

Closed
cpury opened this issue Feb 25, 2017 · 2 comments
Closed

Work with bgLazyLoad #7

cpury opened this issue Feb 25, 2017 · 2 comments

Comments

@cpury
Copy link

cpury commented Feb 25, 2017

Great package!

To get bgLazyLoad: true to work, I need to install https://github.com/metafizzy/flickity-bg-lazyload . I tried installing it via npm install flickity-bg-lazyload --save, but my data-flickity-bg-lazyload attributes just get ignored.

Have you tried using add-on packages like this? Any ideas how to get them to work?

Thanks!

@cpury
Copy link
Author

cpury commented Feb 25, 2017

Ok I got it to work. Simply imported flickity-bg-lazyload in my component after importing vue-flickity. It then patches the existing Flickity variable.

Of course that's not the cleanest way of doing this, maybe you want to consider adding some nicer API 😃

@cpury cpury closed this as completed Feb 25, 2017
@pmochine
Copy link

Thanks! Just for future readers:

import VueFlickity from 'vue-flickity';
require('flickity-bg-lazyload');

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

2 participants