I am creating a portfolio page that has a list of various projects (in an unordered list). When loading a page, I want each "li" to disappear one by one. I achieved this like this:
var eT = 0; $('.everything').hide().each(function() { $(this).delay(eT).fadeIn('slow'); eT += 200; });
The problem I am facing is that each li will have a class (or several) based on the type of work (web pages, printing, etc.) that it represents. There is a navigation bar that allows you to filter the type of work displayed. I was faced with the fact that if I click on the filters and the animation is still loading into the elements, everything becomes very dirty.
Here is the work page template: http://jjaakk.miller-interactive.com/templates/work.html
I have tried many things, but with limited success. Any thoughts on how to make this work more stable?
I tried adding .stop () on click, but it did not work as I thought.
source share