Paste before </body> tag of the page you're working with.
The variable we created to store our Library instance. The name of the variable can be set to whatever you want.
The class of the load more button that loads more Collection Items. This must be the native Webflow Paginate button.
Cool: The button hides itself after there are no more items to load (NICE!).
Resets Webflow Interactions to make sure your newly loaded items have interactions applied to them.
Set to ~true~ if you have Webflow interactions within your Load More instance. Set to ~false~ if you have no interactions on your page.
Loads all of the items in your Collection. This can load more than 100 items in a single Dynamic List
~false~ = only load the first set of items in your pagination
~true~ = load all of the items in your pagination.
If you have no reason to set ~loadAll~ to ~true~, set to ~false~.
Tutorial for loadAll https://cmsdocs-howto.webflow.io/loadmore/example3
Option to add a pagination element to your Load More component.
Tutorial for pagination https://cmsdocs-howto.webflow.io/loadmore/example5
* Pagination ui has been simplified since this video. More information below.
~true~ turns pagination on, ~false~ turns pagination off (default: ~false~).
Amount of items to show inside each page of pagination.
For example, ~5~ would show 5 items in each page of pagination. ~20~ would show 20 items in each page of pagination.
itemsPerPage accepts a number (~5~).
Apply an attribute to the page element you want to use as the "Previous" button in your pagination ui.
~fs-pagination="previous"~
Apply an attribute to the page element you want to use as the "Next" button in your pagination ui.
~fs-pagination="next"~
Apply an attribute to the page element you want to use as page counter in your pagination ui.
~fs-pagination="page-count"~
Continuously load more items from the Collection List as you reach the end of the list. This creates an 'infinite scrolling' effect.
~false~ = continuous infinite scrolling is turned off. User must click "Next" button to load more items
~true~ = continuous infinite scrolling is turned on. Items will load automatically for the user as they scroll
Tutorial for infiniteScroll: https://cmsdocs-howto.webflow.io/loadmore/example4
Works with infiniteScroll.
The percent height of the Collection List element scrolled so far before infiniteScroll is triggered. A smaller percentage value will load items sooner than a larger value.
Recommended to set between 60-80. Trial and error testing with your list setup is recommended.
Tutorial for infiniteScroll: https://cmsdocs-howto.webflow.io/loadmore/example4
Option to add animations and transitions for items being loaded with the Load More button.
~true~ turns animation on, ~false~ turns animation off (default: ~true~).
Time the animation happens in seconds. ~0.2~ would be 0.2 seconds, or 200 milliseconds (default: ~0.2~).
Easing of the effect. Available options are ~ease~, ~ease-in~, ~ease-out~, and ~ease-in-out~ (default: ~ease~).
Add ~fade~, ~translate~, ~rotate~, and ~scale~ effects (default: ~fade~).