Domanda

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")
});
È stato utile?

Soluzione

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

$('.animation1').delay(350)
                .queue(function(){
                   $(this).addClass("animate-from-top");
// semicolon missing here -----------------------------^ 
                });

Altri suggerimenti

like this

$('.animation1').delay(350).queue(function(){$(this).addClass("animate-from-top");});
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top