0
I have a problem with the Animation shake, once it starts, I can’t make it stop
var shakeit = null;
function abre(a){
clearInterval(shakeit);
}
function fecha(){
var shakeit = setInterval(function(){
$(".left_noti2").effect("shake",{direction:"up", distance:"5", times: "2"});
}, 3000);
}
Once I press the button to close the div, I would like the button to have the shake effect, but as soon as it opens again, I would like it (function) to stop, but the code I have is not working, there is some solution?