javascript - JQuery smooth animation -
i have animation makes buttons on screen 'beat'. works fine exept 1 thing, animation 'sharp' , not smooth, how can smooth it?
function myfunction() { setinterval(function () { tstfnc(); }, 1000); } var flag = true; function tstfnc() { var numm = math.floor((math.random() * 10) + 1); var stringm = '#mgf_main' + numm + ' img'; $(stringm).animate({ width: '80px', height: '80px' }, 150, function () { $(stringm).animate({ width: '68px', height: '68px' }, 150, function () { // nothing }); }); };
Comments
Post a Comment