data-filter
matching its slug.mix
class plus dynamic classes based on its category slugs.To use the MixItUp jQuery plugin to filter Webflow CMS (Collection List) content dynamically, including auto-generated filters for CMS categories or tags, you need to integrate MixItUp with Webflow’s dynamic data. Here’s how:
data-filter=".category-slug"
where category-slug
is a unique class matching the category.<div>
with mix
class (required by MixItUp).category-slug
as a class to the wrapper div.mix category-design category-branding
.tag:
<script src="https://cdn.jsdelivr.net/npm/mixitup@3/dist/mixitup.min.js"></script>
<script>var mixer = mixitup('.mix-container');</script>
.mix-container
is the class of the parent wrapper around all mix items (your Collection List wrapper).data-filter
attribute and matching class on items.data-filter="all"
that resets filters.data-filter=".w-dyn-bind:slug"
slug
as a class.To filter Webflow CMS collections dynamically with MixItUp:
data-filter
attributes using CMS fields.