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

    Hi,

    I created a page with a gallery on it, however when it loads there is white image overlay that will disappear when I scroll down.

    How can I disable this for galleries?

    thanks,

    MJ

    #133012

    more specifically how do I remove avia_animate_when_visible only on galleries

    #133013

    Open up enfold/js/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');

    and the gallery thumbs should load immediately.

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

The topic ‘Diable image animation on scroll’ is closed to new replies.