-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Lazyload and isotope #51
Comments
Depending on how you're issuing your filters, you may wish to trigger a +1 & -1 scroll with jQuery on filter click. |
@Whoisbenjamin I'm already animating
But it doesn't work only if the page is already at Top position. |
Feel free to use the simple little function I created: function forceLoad(){ May not be graceful, but get's the job done and not a hog. |
Thanks ... OK if I use the following :
It works but if I remove the alert it doesn't work anymore :-/ |
@Whoisbenjamin This works. THANK YOU!
|
@Whoisbenjamin Well it only works if the page is still bigger than viewport (so it can actually scroll) :-/ If you try the Corporatif filter menu it won't work because the page can't scroll. Does it make sense? |
Not sure I understand. Here is how I implemented it … there is a bulk of extra code in there as I'm doing a sort of inverse :active state for the other filters, and have implemented jQuery BBQ for permalinks. Hope this helps.
|
OK got it ! I used I setTimout to make sure the scroll would occur before the page becomes smaller than the viewport. Thanks! |
Hey @Whoisbenjamin the solution doesn't work in Safari... On your site neither, I just checked. |
Have not tried with isotope but have you tried triggering scroll on window?
|
@tuupola Thanks it works! |
OK I'm building a new portfolio for myself at http://www.gablabelle.com/ and I'm using your lazyload plugin with isotope to showcase my images. It works great when I scroll down the page but it seems like the images don't show up when filtering without having previously scrolled down. If i scroll down nothing happens.
It's acting like it doesn't consider the images to actually be in viewport (because of isotope).
If I put a high number to failure_limit (like 100 or 1000) it will actually show the images after filtering if I scroll a bit.
Is there something I can do to solve this?
Many thanks.
The text was updated successfully, but these errors were encountered: