I am using an extended addclass and removeclass that basically just adds a animation onto it.
I took this from the script:
addClass: function(classNames, speed, easing, callback)
removeClass: function(classNames,speed,easing,callback)
My issue is that I need to run the following code, but if a user clicks a item then another before the last one finished it causes two items to change classes.
I tried playing around with the callback, but I can't get it to work. This is what I need to do though.
$(document).ready(function(){
$(".scrollable1 .items div").click(function () {
$(".scrollable1 .items div").removeClass(".scrollable .items div selected", 0);
$(this).addClass(".scrollable .items div selected", 1000);
});
});
Please help, as I am stuck!!
Thanks a lot