Highlight and Fade filter on click
This is just a simple script to switch two classes .fadefF
and .showfF
We can manage the style and transition effects with CSS3
Navigation Structure
Wrap the navigation items with class .filters
Name filter items with data attribute data-item=''
Gallery Preview
Wrap the element with class .filterItems
Wrap the child element containing all data with data attribute .data-obj=''
and match the value with .data-item=''
defined above in navigation item.