A high-performance, dependency-free library for animated filtering, sorting, insertion, removal and ...
The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:
MixItUp is a high-performance, dependency-free library for animated DOM manipulation, giving you the power to filter, sort, add and remove DOM elements with beautiful animations.
MixItUp plays nice with your existing HTML and CSS, making it a great choice for responsive layouts and compatible with inline-flow, percentages, media queries, flexbox and more.
For a live sandbox, full documentation, tutorials and more, please visit kunkalabs.com/mixitup.
Migrating from MixItUp 2? Check out the MixItUp 3 Migration Guide.
MixItUp is open source and free to use for non-commercial, educational and non-profit use. For use in commercial projects, a commercial license is required. For licensing information and FAQs please see the MixItUp Licenses page.
MixItUp 3 has been tested for compatibility with the following browsers.
Most commonly, MixItUp is applied to a "container" of "target" elements, which could be a portfolio of projects, a list of blog posts, a selection of products, or any kind of UI where filtering and/or sorting would be advantageous.
To get started, follow these simple steps:
By default, MixItUp will query the container for targets matching the selector
Targets can be filtered using any valid selector e.g.
'.category-a', and are sorted via optional custom data attributes e.g.
Further reading: Marking-up MixItUp Containers
One way that filtering and sorting happens is when controls are clicked. You may use any clickable element as a control, butis recommended for accessibility.
Filter controls are queried based on the presence of a
data-filterattribute, whose value must be
'none', or a valid selector string e.g.
All Category A Category B Category C
Further reading: Filtering with MixItUp
Sort controls are queried based on the presence of a
data-sortattribute, whose value takes the form of a "sort string" made up of the name of the attribute to sort by, followed by an optional colon-separated sorting order e.g.
Ascending Descending Random
'random'are also valid, with
'default'referring to the original order of target elements in the DOM at the time of mixer instantiation.
Further reading: Sorting with MixItUp
While MixItUp can be added on top of any existing CSS layout, we strongly recommend inline-block or flexbox-based styling over floats and legacy grid frameworks when dealing with grid-based designs for a number of reasons.
Further reading: MixItUp Grid Layouts
The most simple way to load MixItUp in your project is to include it via atag before the closing