object, which is used to process the animation queue.
deferred = jQuery.Deferred().always( function() { // don't match elem in the :animated selector delete tick.elem;}),
Then, generate a tick function that will be executed at each time point (the event interval between two adjacent time points is 13 milliseconds by default). This tick function will be stored in jQuery. timers, and then run jQuery every time. fx. tick will be extracted and executed.
Tick = function () {if (stopped) {retur
speeds = {slow: 600, fast: 200, _ default: 400}, // animation speed (full animation execution time) step ={}// backward compatible with
Detailed source code analysis is as follows:
JQuery. fx = Tween. prototype. init; // The function shell that will be executed at each time point, and jQuery will be taken out. the function in timers executes jQuery. fx. tick = function () {var timer, timers = jQuery. timers, I = 0; fxNow = jQuery. now (); for (; I
, options). Properties is the CSS feature that you want to animate, options is the animation-related option {complete:function () {...},duration:400,easing:undefined,old:false,queue: "FX "}。
First, a delay object is initialized, which is used to process the animation queue.
deferred = Jquery.deferred (). Always (function () {
//don ' t match elem in the:animated selector
Delete Tick.elem;
Then, a function tick, which is executed at each point in time (the event interval of t
},//animation speed (full animation execution time) Step
= {}//Backward-compatible
Detailed source analysis is as follows
jquery.fx = Tween.prototype.init;
The function shell that is executed at each point in time will take out the function in Jquery.timers to execute JQuery.fx.tick = functions () {var timer, timers = jquery.timers, i = 0;
Fxnow = Jquery.now ();
for (; i
Variable jquery.timers = []; is used to save a list of f
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.