Infinite Scroll Photo Gallery
Would this approach suit your needs?
“There are only two ways to live your life. One is as though nothing is a miracle." ~ Albert Einstein
I've always used https://github.com/infinite-scroll/infinite-scroll, however I see that Paul Irish is no longer maintaining it. I don't know if this means that it's wrong to use it, or simply that you can no longer get support for it... but I would start there.
What I recommend you start with is a hardcoded page where you have the infinite scroll script setup.
I imagine the script you are using will even have some examples you can probably copy and paste into your own template without much modification.
Once you have the hardcoded page setup, it will be more clear where the CMS Builder code needs to go.
Does that make sense?
Let me know when you have the hardcoded page setup.
Ross Fairbairn - Consulting
Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/