auto trigger a function with .animate in jquery -
I am on a jQuery project and stuck at some point.
I jQuery .animate ()
ie: $ ("planeid"). Animate ({top: '590px'}, 1000);
where the top value is initially 0
top
when the value of the property reaches
Yes , You can return the step
call to the endem function.
$ ("plane") (animate) ({top: '590px'}, {duration: 1000, phase: function (current value) {if (currentValue === 200} {// your code is here.}}});
Comments
Post a Comment