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

This is a feature thing: #148

Open
rapgithub opened this issue Jul 30, 2017 · 0 comments
Open

This is a feature thing: #148

rapgithub opened this issue Jul 30, 2017 · 0 comments

Comments

@rapgithub
Copy link

it will be nice to have in blazy the chance to have a loader specified in the options settings and also some css style for the selector and loader:

something like:

var bLazy = new Blazy({
loaderSelector: '.loading'
loaderAlignment: 'centered',
selectorCSS: [{
-webkit-transition: opacity 500ms ease-in-out;
-moz-transition: opacity 500ms ease-in-out;
-o-transition: opacity 500ms ease-in-out;
transition: opacity 500ms ease-in-out;
max-width: 100%;
opacity: 0;
}],
selectorloadedCSS: [{
opacity: 1;
}],
});

where loaderAlignment can be centered top-centered bottom-centered or custom

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

1 participant