imgLiquid
imgLiquid copied to clipboard
Is there anyway for imgLiquid to work with lazy loaded images?
I'm working to get imgLiquid to work in tandem with http://kenwheeler.github.io/slick/
But using the lazy loading provided by Slick is causing the images to not show up at all when using imgLiquid, i've tried attaching the function to various callbacks in Slick but no luck so far.
Regards, Devon Mather
I've had success with using https://github.com/toddmotto/echo
Any code example for this ?
this works perfectly
echo.init({
offset: 100,
throttle: 250,
unload: false,
callback: function (element, op) {
$(element).parent().addClass('imgLiquidFill');
$(".imgLiquidFill").imgLiquid();
}
});