Skip to content

Instantly share code, notes, and snippets.

@codernik
Created March 23, 2018 09:39
Show Gist options
  • Save codernik/9d450c255a25377001fa31eef4c6b830 to your computer and use it in GitHub Desktop.
Save codernik/9d450c255a25377001fa31eef4c6b830 to your computer and use it in GitHub Desktop.
Add and remove isotope-hidden class
var itemReveal = Isotope.Item.prototype.reveal;
Isotope.Item.prototype.reveal = function() {
itemReveal.apply( this, arguments );
$( this.element ).removeClass('isotope-hidden');
};
var itemHide = Isotope.Item.prototype.hide;
Isotope.Item.prototype.hide = function() {
itemHide.apply( this, arguments );
$( this.element ).addClass('isotope-hidden');
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment