Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #583836

    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

    #584451

    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

    #584524

    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

    #586081

    Hey!

    try this solution: https://kriesi.at/support/topic/disable-animation/#post-371416

    Cheers!
    Andy

    P.S. I love your work!!!

    #586138

    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?.

    #586919

    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

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.