Skip to content

Conversation

@avradul
Copy link

@avradul avradul commented Sep 15, 2017

No need .removeAttr(bgAttr) same as data-src for images by default.
This allows to add animation, for example
[data-bg] {
opacity: 0;
transition: opacity 0.5s ease;
}
.lazy-loaded[data-bg] {
opacity: 1;
}

No need .removeAttr(bgAttr) same as data-src for images.
This allows to add animation, for example
[data-bg] {
	opacity: 0;
	transition: opacity 0.5s ease;
}
.lazy-loaded[data-bg] {
	opacity: 1;
}
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

Successfully merging this pull request may close these issues.

1 participant