Similar solution: https://webflow.com/blog/dynamic-filtering-and-sorting
Include the following scripts:
<script src="https://cdnjs.cloudflare.com/ajax/libs/mixitup/3.3.0/mixitup.min.js" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-url/2.5.3/url.min.js" integrity="sha512-YlfjbwbVZGikywbRiBmrMZh4gkigfbNHBLi8ZVQUMCGn/5Fnc700QDiZ3OC4WY2peX1nrqUbCcHyOyvKR8hwNA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://svelte-studios.github.io/webflow-scripts/filter.js" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
Apply the following classes to the relevant elements on the page.
Apply the filter key class to the elements that can be clicked and has text as its content. This can be a link inside of a collection list.
<a href="#" class="filter-key">Category</a>
Apply the filter in addition to the filter-key to the element that can be clicked and has text as its content.
<a href="#" class="filter-key filter-all">All</a>
Apply this class to the wrapper around the item to be filtered. This could be the collection list wrapper.
<div class="filter-items"></div>
Apply this class to the item inside the wrapper.
<div class="news-articles filter-items">
<div class="news-cms-item filter-item"></div>
</div>
Apply this class to an element inside the filter item that represents the value to filter by. The element should have text that corresponds to the filter-key Each filter-item can have many filter-value elements.
<div class="filter-value">Category1</div>
<div class="filter-value">Category2</div>
When navigating to a page you can apply a filter by supplying a filter querystring parameter.
<a href="/page?filter=category">Link to page</a>
Include the following scripts:
<script src="https://svelte-studios.github.io/webflow-scripts/filterToggle.js" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
Apply the feature toggle key to the filter button. The text inside this div will be what is filtering the items.
<div class="filter-toggle-key">Filter By this</div>
Apply the feature list item in the list.
<div class="feature-list-item">Item #1</div>
Apply the feature toggle value item in the list. The text inside this div will be what is used to see if this item meets the params of the filter.
<div class="feature-list-item">
<div class="feature-toggle-value">
This item belongs to this filter.
</div>
</div>
Apply the feature list class to the container of the feature-list-item children.
<div class="feature-list">
<div class="feature-list-item active">
Item #1
</div>
<div class="feature-list-item">
Item #2
</div>
</div>
Apply the active class to the feature-list-item that should show it's content by default. Be sure to apply styles to the active class via webflow to customise the look of the hovered list item
Include the following scripts:
<script src="https://svelte-studios.github.io/webflow-scripts/featureList.js" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
Apply the following classes to the relevant elements on the page.
Apply the feature list item to the hoverable items.
<div class="feature-list-item">Item #1</div>
Apply the feature list class to the container of the feature-list-item children.
<div class="feature-list">
<div class="feature-list-item active">
Item #1
</div>
<div class="feature-list-item">
Item #2
</div>
</div>
Apply the active class to the feature-list-item that should show it's content by default. Be sure to apply styles to the active class via webflow to customise the look of the hovered list item
Apply the featured content class to the container of the contents that is supposed to display on hover
<div class="featured-content">
<div>
Item #1 Content
</div>
<div>
Item #2 Content
</div>
</div>
Include the following scripts:
<script src="https://cdn.finsweet.com/files/cmslibrary-v1.8.js"></script>
<script src="https://svelte-studios.github.io/webflow-scripts/loadMore.js" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
Apply this class to the container of the items you want to load. This container also needs to have webflow's pagination settings active.
Apply this class to the "Next" pagination button