Skip to content

Instantly share code, notes, and snippets.

@niallthompson
Created September 11, 2014 21:49
Show Gist options
  • Save niallthompson/15e453a30d6fdb1140ab to your computer and use it in GitHub Desktop.
Save niallthompson/15e453a30d6fdb1140ab to your computer and use it in GitHub Desktop.
Hash Filtering // Friend
(function($){
var hash = (window.location.hash).replace('#', '.');
var filter = (hash) ? '.category-' + hash : '.liveaction';
$('.mixitup').mixItUp({
load: {
filter: filter
},
animation: {
duration: 400,
effects: 'fade translateZ(-360px) stagger(34ms)',
easing: 'ease'
}
});
})(window.jQuery)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment