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

Not all images are shown #93

Open
ChristianGiupponi opened this issue Sep 3, 2015 · 0 comments
Open

Not all images are shown #93

ChristianGiupponi opened this issue Sep 3, 2015 · 0 comments

Comments

@ChristianGiupponi
Copy link

I have add data-echo to all my images but most of the time just the first image is shown while the other still show the loader.

This is my html:

<div class="image">
    <img src="img/loader-img.gif" data-echo="img/example.jpg" alt="title">
</div>

and this is my code:

echo.init({ 
        offset: 100, 
        throttle: 250, 
        unload: false, 
        callback: function (element, op) { 
            $(element).parent().closest('div').addClass('imgLiquidFill imgLiquid');
            $(".imgLiquidFill").imgLiquid(); 
        } 
     }); 

the callback are called just once, so only the first element will add the imgLiquid class.
How can I solve?

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