Closed wassereimer86 closed 7 years ago
Oh man..... After hours.... So stupid.....
if ($(ele).hasClass("gojarallax")) {
$(ele).addClass("jarallax");
$(ele).removeClass("gojarallax");
$('.jarallax').jarallax();
}
I want to add a class to an image if it has a specific class in a callback function. After adding the class the other should be removed.
http://dinbror.dk/blog/blazy/#Callback
This is what i have. But it don´t work. I get the error:
Uncaught SyntaxError: Unexpected identifier
What am i doing wrong?