Scripts you can use to add more custom functionality on top of CMS Library components.
On the first page where the links should be in.
On the second page that needs to be filtered on load.
For each button text block, add the class '.filter-by-text', then add this script.
For each checkbox add this classes. The checkbox form '.checkbox-form', filter by text text-block '.filter-by-text' and the checkbox element '.checkbox-class', then add this script.
For each checkbox add this classes. The checkbox form '.checkbox-form', filter by text text-block '.filter-by-text' and the checkbox element '.checkbox-class', then add this script.
Define this classes. The collection list item, the collection list and the counter element class.
This hack scrolls to a specific element after you click the load more button. Define the nth element number you want to scroll to.
To be able to achieve this, you need to define the filter/sort button class and the load more button class, then add this script.
Add an ID to the element you need to scroll up to, say list-start.
Follow the steps below to achieve this functionality