Question

I have two effects combined with .dequeue(). How can Make this effec repeat x-times ? 4 times,5times etc instead of just one run.

JSFIDDLE: *JS*:

$('somediv').effect( "highlight", 1000 ).dequeue().effect( "bounce", 1000 );

No correct solution

OTHER TIPS

$('#test').click(function () {
    for (var i = 0; i < 5; i++) {
        setTimeout(bounce,i * 1500);
    }
});

function bounce(){
    $('#test').effect("highlight", 1000).dequeue().effect("bounce", 1000);
}

see a working example here http://jsfiddle.net/zqK47/

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top