Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // mixitup forum post
- mixitup(container, {
- selectors: {
- control: '[data-mixitup-control]'
- }
- }
- <button type="button" data-mixitup-control data-filter=".red">Red</button>
- <button type="button" data-mixitup-control data-toggle=".blue">Blue</button>
- <button type="button" data-mixitup-control data-sort="default:desc">Sort Desc</button>
- // personal code example
- // Mix It Up
- if($('.blog--posts').length) {
- var mixer = mixitup('.blog--posts', {
- animation: {
- duration: 300
- },
- selectors: {
- control: '[data-mixitup-control]'
- }
- });
- }
- <button data-mixitup-control type="button" data-filter="all">All</button>
Add Comment
Please, Sign In to add comment