PHPackages                             patrickkunka/mixitup - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. patrickkunka/mixitup

AbandonedArchivedLibrary

patrickkunka/mixitup
====================

A high-performance, dependency-free library for animated filtering, sorting and more

v3.3.1(7y ago)4.6k35.1k↓39.3%736[63 issues](https://github.com/patrickkunka/mixitup/issues)[3 PRs](https://github.com/patrickkunka/mixitup/pulls)2proprietaryJavaScript

Since May 25Pushed 1y ago154 watchersCompare

[ Source](https://github.com/patrickkunka/mixitup)[ Packagist](https://packagist.org/packages/patrickkunka/mixitup)[ Docs](https://www.kunkalabs.com/mixitup/)[ RSS](/packages/patrickkunka-mixitup/feed)WikiDiscussions v3 Synced 1mo ago

READMEChangelog (1)DependenciesVersions (21)Used By (2)

📣 November 2024 Update 📣
========================

[](#-november-2024-update-)

### Changes to License Model

[](#changes-to-license-model)

As MixItUp turns 10 years old (and having remained unchanged since ~2018) it will be moving to a **fully open source** and publicly available model. This means that from 1st November 2024, you no longer need to purchase a license for commercial use.

Additionally, the MixItUp project and its extensions will become **fully archived** meaning that no future changes will be made. MixItUp has been stable for many years and remains in use across tens of thousands of web sites and applications worldwide. If you wish to use it on a brand-new project and it meets your needs, then you should feel confident in doing so provided you do not require support.

### Pagination and MultiFilter Extensions

[](#pagination-and-multifilter-extensions)

The Pagination and MultiFilter extensions, which were previously closed source and only available via purchase, have also been been made publicly available on GitHub, and may now be used without purchase or a commercial license.

- [www.github.com/patrickkunka/mixitup-pagination](https://www.github.com/patrickkunka/mixitup-pagination)
- [www.github.com/patrickkunka/mixitup-multifilter](https://www.github.com/patrickkunka/mixitup-multifilter)

### Documentation Website

[](#documentation-website)

The documentation website has been retired in favor of GitHub. All documentation and tutorials are available via this GitHub repository, or the repository of the relevant extension (see above).

### Demos

[](#demos)

Hosted interactive demos may be found at [patrickkunka.github.io/mixitup/demos](https://patrickkunka.github.io/mixitup/demos). The documented source code of each demo can be found in the [/demos](./demos/) directory if this repository.

Demos for the Pagination and MultiFilter extensions can be found linked to in their respective repositories.

---

MixItUp 3
=========

[](#mixitup-3)

[![Latest Release](https://camo.githubusercontent.com/9bebd82f069e9f0c3993a3565204d3a33770767b4185a1defca751cbddf44cd0/68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f762f6d6978697475702e7376673f7374796c653d666c61742d737175617265)](https://www.npmjs.com/package/mixitup)[![jsDelivr Hits](https://camo.githubusercontent.com/80394243421ba468b4967e9d0b8d87c6887667a7be488bffa39baa290ef199aa/68747470733a2f2f646174612e6a7364656c6976722e636f6d2f76312f7061636b6167652f67682f7061747269636b6b756e6b612f6d6978697475702f62616467653f7374796c653d726f756e646564)](https://www.jsdelivr.com/package/gh/patrickkunka/mixitup)

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.

Migrating from MixItUp 2? Check out the [MixItUp 3 Migration Guide](./docs/mixitup-3-migration-guide.md).

#### Licensing

[](#licensing)

MixItUp is open source and free to use for all use cases, under the Apache 2.0 license.

#### Documentation

[](#documentation)

- [Factory Function](./docs/mixitup.md)
- [Configuration Object](./docs/mixitup.Config.md)
- [Mixer API Methods](./docs/mixitup.Mixer.md)
- [State Object](./docs/mixitup.State.md)
- [Mixer Events](./docs/mixitup.Events.md)

#### Tutorials

[](#tutorials)

##### [Integrating MixItUp into Your Project](./tutorials/integrating-mixitup-into-your-project.md)

[](#integrating-mixitup-into-your-project)

MixItUp can be used with static sites, CMSs, web apps and more. This tutorial will help you choose the right integration for your project.

##### [Filtering with MixItUp](./tutorials/filtering-with-mixitup.md)

[](#filtering-with-mixitup)

A summary of the various filtering techniques available in MixItUp – filter/toggle controls, multidimensional filtering, and the filter API.

##### [Sorting with MixItUp](./tutorials/sorting-with-mixitup.md)

[](#sorting-with-mixitup)

A summary of the various sorting techniques available in MixItUp – default sort, attribute sort, multi-attribute sort, and the sort API.

##### [MixItUp Grid Layouts](./tutorials/mixitup-grid-layouts.md)

[](#mixitup-grid-layouts)

A summary of the three most common approaches to responsive grids – inline-block, flex-box, and floats – in the context of MixItUp.

##### [Marking Up MixItUp Containers](./tutorials/marking-up-mixitup-containers.md)

[](#marking-up-mixitup-containers)

This tutorial explores various container markup structures, and explains what is and isn't possible with MixItUp.

##### [Filtering and Sorting on Load](./tutorials/filtering-and-sorting-on-load.md)

[](#filtering-and-sorting-on-load)

A look at how we can use the configuration object to load MixItUp in a state other than its default filtering and sorting behavior.

##### [Using the Dataset API](./tutorials/using-the-dataset-api.md)

[](#using-the-dataset-api)

New to MixItUp 3, the Dataset API allows interaction with MixItUp purely via changes to a data model, avoiding the use of DOM selectors.

#### Browser Support

[](#browser-support)

MixItUp 3 has been tested for compatibility with the following browsers.

- Chrome 16+
- Firefox 16+
- Safari 6.2+
- Yandex 14+
- Edge 13+
- IE 10+ (with animations), IE 8-9 (no animations)

Getting Started
---------------

[](#getting-started)

#### Contents

[](#contents)

- [Building the Container](#building-the-container)
- [Building Controls](#building-controls)
- [Styling the Container](#styling-the-container)
- [Loading MixItUp](#loading-mixitup)
- [Creating a Mixer](#creating-a-mixer)
- [Configuration](#configuration)

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:

### Building the Container

[](#building-the-container)

By default, MixItUp will query the container for targets matching the selector `'.mix'`.

```

```

Targets can be filtered using any valid selector e.g. `'.category-a'`, and are sorted via optional custom data attributes e.g. `'data-order'`.

Further reading: [Marking-up MixItUp Containers](./tutorials/marking-up-mixitup-containers.md)

### Building Controls

[](#building-controls)

One way that filtering and sorting happens is when controls are clicked. You may use any clickable element as a control, but `` is recommended for accessibility.

#### Filter Controls

[](#filter-controls)

Filter controls are queried based on the presence of a `data-filter` attribute, whose value must be `'all'`, `'none'`, or a valid selector string e.g. `'.category-a'`.

```
All
Category A
Category B
Category C
```

Further reading: [Filtering with MixItUp](./tutorials/filtering-with-mixitup.md)

#### Sort Controls

[](#sort-controls)

Sort controls are queried based on the presence of a `data-sort` attribute, 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. `'order'`, `'order:asc'`, `'order:desc'`.

```
Ascending
Descending
Random
```

The values `'default'` and `'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](./tutorials/sorting-with-mixitup.md)

### Styling the Container

[](#styling-the-container)

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](./tutorials/mixitup-grid-layouts.md)

### Loading MixItUp

[](#loading-mixitup)

Firstly, load the MixItUp JavaScript library using the preferred method for your project.

#### Script Tag

[](#script-tag)

The most simple way to load MixItUp in your project is to include it via a `` tag before the closing `` tag on your page.

```
        ...

```

With this technique, the MixItUp factory function will be made available via the global variable `mixitup`.

#### Module Import

[](#module-import)

If you are building a modular JavaScript project with Webpack, Browserify, or RequireJS, MixItUp can be installed using your package manager of choice (e.g. npm, jspm, yarn) and then imported into any of your project's modules.

`npm install mixitup --save`

```
// ES2015

import mixitup from 'mixitup';
```

```
// CommonJS

var mixitup = require('mixitup');
```

```
// AMD

require(['mixitup'], function(mixitup) {

});
```

### Creating a Mixer

[](#creating-a-mixer)

With the `mixitup()` factory function available, you may now instantiate a "mixer" on your container to enable MixItUp functionality.

Call the factory function passing a selector string or a reference to your container element as the first parameter, and a the newly instantiated mixer will be returned.

###### Example: Instantiating a mixer with a selector string

[](#example-instantiating-a-mixer-with-a-selector-string)

```
var mixer = mixitup('.container');
```

###### Example: Instantiating a mixer with an element reference

[](#example-instantiating-a-mixer-with-an-element-reference)

```
var mixer = mixitup(containerEl);
```

Your mixer is now ready for you to interact with, either via its controls (see above), or its API (see [Mixer API Methods](./docs/mixitup.Mixer.md)). Click a control or call an API method to check that everything is working correctly.

### Configuration

[](#configuration)

If you wish to customize the functionality of your mixer, an optional "configuration object" can be passed as the second parameter to the `mixitup` function. If no configuration object is passed, the default settings will be used.

Further reading: [Configuration Object](/docs/mixitup.Config.md)

###### Example: Passing a configuration object

[](#example-passing-a-configuration-object)

```
var mixer = mixitup(containerEl, {
    selectors: {
        target: '.blog-item'
    },
    animation: {
        duration: 300
    }
});
```

#### Using the API

[](#using-the-api)

If you wish to interact with your mixer via its API, the mixer reference returned by the factory function can be used to call API methods.

###### Example: Calling an API method

[](#example-calling-an-api-method)

```
var mixer = mixitup(containerEl);

mixer.filter('.category-a');
```

Further reading: [Mixer API Methods](./docs/mixitup.Mixer.md)

#### Building a modern JavaScript application?

[](#building-a-modern-javascript-application)

You may wish to use MixItUp 3's new "dataset" API. Dataset is designed for use in API-driven JavaScript applications, and can be used instead of DOM-based methods such as `.filter()`, `.sort()`, `.insert()`, etc. When used, insertion, removal, sorting and pagination can be achieved purely via changes to your data model, without the uglyness of having to interact with or query the DOM directly.

Further reading: [Using the Dataset API](./tutorials/using-the-dataset-api.md)

###  Health Score

51

—

FairBetter than 96% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity59

Moderate usage in the ecosystem

Community32

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 94.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~79 days

Recently: every ~115 days

Total

21

Last Release

2786d ago

Major Versions

v2.x-dev → v3.1.62017-01-29

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/649209?v=4)[Julian](/maintainers/c33s)[@c33s](https://github.com/c33s)

---

Top Contributors

[![patrickkunka](https://avatars.githubusercontent.com/u/1686556?v=4)](https://github.com/patrickkunka "patrickkunka (35 commits)")[![c33s](https://avatars.githubusercontent.com/u/649209?v=4)](https://github.com/c33s "c33s (1 commits)")[![LukasDrgon](https://avatars.githubusercontent.com/u/15611832?v=4)](https://github.com/LukasDrgon "LukasDrgon (1 commits)")

---

Tags

animationdom-manipulationfiltersortvanilla-jsjavascriptfilteringsortinganimate

### Embed Badge

![Health badge](/badges/patrickkunka-mixitup/health.svg)

```
[![Health](https://phpackages.com/badges/patrickkunka-mixitup/health.svg)](https://phpackages.com/packages/patrickkunka-mixitup)
```

###  Alternatives

[tightenco/ziggy

Use your Laravel named routes in JavaScript.

4.3k41.6M267](/packages/tightenco-ziggy)[matthiasmullie/minify

CSS &amp; JavaScript minifier, in PHP. Removes whitespace, strips comments, combines files (incl. @import statements and small assets in CSS files), and optimizes/shortens a few common programming patterns.

2.0k30.5M336](/packages/matthiasmullie-minify)[friendsofsymfony/jsrouting-bundle

A pretty nice way to expose your Symfony routing to client applications.

1.5k53.6M229](/packages/friendsofsymfony-jsrouting-bundle)[tedivm/jshrink

Javascript Minifier built in PHP

76037.7M139](/packages/tedivm-jshrink)[indexzer0/eloquent-filtering

Powerful eloquent filtering

22425.9k3](/packages/indexzer0-eloquent-filtering)[gbrock/laravel-table

Table functionality for Laravel models

7644.3k](/packages/gbrock-laravel-table)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
