Skip to content

Instantly share code, notes, and snippets.


glennyboy/Isotope filter by URL Hash Secret

Last active Jul 24, 2019
What would you like to do?
Isotope filter by URL Hash
// Isotope filter by URL Hash
jQuery(document).ready( function($) {
// Store # parameter and add "." before hash
var hashID = "." + window.location.hash.substring(1);
// Set Isotope Container
var $container = $('.container');
itemSelector: ".item",
filter: hashID, // the variable filter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment