Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #22385

    I have a long gallery with thumbnails on one of my pages, and everything looks grayed out until I scroll to the bottom of the page, which is obviously undesirable. Is there a way to disable the scroll animation and just have the images load one the user visits the page?

    Thanks.

    #115608

    open up shortcode.js and search for this code around line 205:


    //trigger displaying of thumbnails
    gallery.on('avia_start_animation', function()
    {
    images.each(function(i)
    {
    var image = $(this);
    setTimeout(function(){ image.addClass('avia_start_animation') }, (i * 110));
    });
    });

    change it to:


    //trigger displaying of thumbnails
    gallery.on('avia_start_animation', function()
    {
    images.each(function(i)
    {
    var image = $(this);
    setTimeout(function(){ image.addClass('avia_start_animation') }, (i * 110));
    });
    }).trigger('avia_start_animation');

    gallery thumbs should then load immediately

    #115609

    would be nice to have a theme configuration for that. i heard complaints about milky gallery thumbs as well.

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Scrolling to Bottom before gallery loads’ is closed to new replies.