Title: Auto scroll
Last modified: May 28, 2023

---

# Auto scroll

 *  [shilo105](https://wordpress.org/support/users/shilo105/)
 * (@shilo105)
 * [3 years ago](https://wordpress.org/support/topic/auto-scroll-5/)
 * Hello Photonic! Your plugin is awesome!
 * Is there a way to make the page reload more photos automatically when reaching
   the bottom of the page?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fauto-scroll-5%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Sayontan Sinha](https://wordpress.org/support/users/sayontan/)
 * (@sayontan)
 * [3 years ago](https://wordpress.org/support/topic/auto-scroll-5/#post-16775225)
 * No, this is not possible, and is not planned either. Photonic let’s you create
   multiple galleries in the same page, and such behavior conflicts with this basic
   design philosophy.
 *  Thread Starter [shilo105](https://wordpress.org/support/users/shilo105/)
 * (@shilo105)
 * [3 years ago](https://wordpress.org/support/topic/auto-scroll-5/#post-16781223)
 * Thank you For your fast response!
   I was trying to add a custom code
 *     ```wp-block-code
       jQuery(window).on('scroll', function(){
         var s = jQuery(window).scrollTop(),
             d = jQuery(document).height(),
             c = jQuery(window).height();
   
          scrollPercent = Math.floor((s / (d - c)) * 100);
          loadingDisplay = document.getElementsByClassName('photonic-loading')[0].style.display;
           loading = document.getElementsByClassName('photonic-loading')[0];
           if(scrollPercent > 75 && loadingDisplay == 'none'){
               document.getElementsByClassName('photonic-more-button')[0].click(); 
               loading.style.setProperty('z-index', '-1', 'important');
               loading.style.visibility = 'hidden';
           }
           if(scrollPercent > 95 && loadingDisplay == 'block'){
               loading.style.setProperty('z-index', '999999', 'important');
               loading.style.visibility = 'visible';
           }
           function loading_status(){
       	status = 'not loading';
       	if(loadingDisplay == 'block') status = 'loading...';
       	return status;
           } 
       // For testing
       // console.clear();
       // console.log(scrollPercent +'% ' + loading_status());
       });
       ```
   
 * Works like a charm!
    -  This reply was modified 3 years ago by [shilo105](https://wordpress.org/support/users/shilo105/).

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Auto scroll’ is closed to new replies.

 * ![](https://ps.w.org/photonic/assets/icon.svg?rev=1972449)
 * [Photonic Gallery & Lightbox for Flickr, SmugMug & Others](https://wordpress.org/plugins/photonic/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/photonic/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/photonic/)
 * [Active Topics](https://wordpress.org/support/plugin/photonic/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/photonic/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/photonic/reviews/)

## Tags

 * [auto scroll](https://wordpress.org/support/topic-tag/auto-scroll/)
 * [google photos](https://wordpress.org/support/topic-tag/google-photos/)
 * [load more](https://wordpress.org/support/topic-tag/load-more/)

 * 2 replies
 * 2 participants
 * Last reply from: [shilo105](https://wordpress.org/support/users/shilo105/)
 * Last activity: [3 years ago](https://wordpress.org/support/topic/auto-scroll-5/#post-16781223)
 * Status: not a support question