I created a simple background effect for some tabs on the page, but I do not want this effect to work if the tab has the current current.
I guess there is a way to do this using .hasClass
Here is what I use for the effect:
$('ul.htabs a').mouseover(function(){
$(this).stop().animate(
{backgroundPosition:"(0 -810px)"},
{duration:150},
{easing: 'easeOutCubic'})
}).mouseout(function(){
$(this).stop().animate(
{backgroundPosition:"(0 -806px)"},
{duration:150},
{easing: 'easeInCubic'})
});
source
share