Open akhatri opened 8 years ago
hey @akhatri
I'll add it to the wish list. Right now you will need to add/remove a class in the success callback as you mention.
var bLazy = new Blazy({
success: function(element){
var parent = element.parentNode;
// Removing the class "loading" from parent
parent.className = parent.className.replace(/\bloading\b/,'');
}
});
This is perhaps a feature request, but is it possible to animate the container that contains the image. e.g.
CSS
If I add the b-lazy class to the image tile container, it doesn't show due to the .b-loaded class being applied only to the image. We can add the .b-loaded to the container through JS but it would be good if it works through the plugin so it offers more flexibility in animating the elements.