Hello again
I use the masonry gallery on a few pages on my website.
It looks like there is a ‘fake’ lazyload on the gallery.
When the page is loaded, the masonry gallery appears only when the first row can be completely seen.
Is it possible the images of the masonry will show one by one when the page is loaded?
thanks in advance
roger
Hi Roger,
Could you provide us with a link to the site in question so that we can take a closer look please?
Thanks,
Rikard
Hello Rikard,
See http://rogercremers.com/world-war-two-today/stalingrad/ for example.
When the gallery is on a bigger screen with just a little background below ‘View the images’.
I want the images to appear already, even when the image space is too small for the image yet.
roger
Hey!
try this solution: https://kriesi.at/support/topic/disable-animation/#post-371416
Cheers!
Andy
P.S. I love your work!!!
Hi Andy
Thanks for the answer. I saw this post earlier, but actually it is not what i wanted.
I don’t want to disable the animation, but it should start when the page loads.
On smaller screens when there is just a small part of the place of the masonry visible. The Masonry is waiting the height is high enough for the first row to appear. In that case it should just start right away.
Is this possible?.
Hi!
Please try this in the functions.php file:
// target blank
add_action('wp_footer', 'ava_masonry_class');
function ava_masonry_class(){
?>
<script type="text/javascript">
(function($) {
$('.av-masonry-entry').addClass('av-masonry-item-loaded');
})(jQuery);
</script>
<?php
}
Best regards,
Ismael