-1

I got that error message but I'm not sure where a semi-colon should be. This is the code.

$('.animation1').delay(350).queue(function(){
    $(this).addClass("animate-from-top")
});
Rory McCrossan
  • 331,213
  • 40
  • 305
  • 339
fender967
  • 285
  • 8
  • 17
  • 2
    Note that correctly formatting your code (as I've edited for you) makes issues like this much easier to find. – Rory McCrossan Sep 04 '13 at 09:36
  • Interestingly enough semi colons are optional in Javascript, making your code correct. However, Douglas Crockford, who created json and jslint amongst many other things thinks this is bad, and he's probably correct :). – Henry Florence Oct 27 '13 at 21:18

2 Answers2

4

In the callback, after the function addClass() the semicolon is missing:

$('.animation1').delay(350)
                .queue(function(){
                   $(this).addClass("animate-from-top");
// semicolon missing here -----------------------------^ 
                });
Sirko
  • 72,589
  • 19
  • 149
  • 183
1

like this

$('.animation1').delay(350).queue(function(){$(this).addClass("animate-from-top");});
OJay
  • 4,763
  • 3
  • 26
  • 47