jQuery源代码学习之十——动画Animate

一、Animate模块的代码结构

// 定义了一些变量
tweeners = {};

function createFxNow() {}

function createTween() {}

function Animation() {}

function propFilter() {}
jQuery.Animation = jQuery.extend(Animation, {
  tweener,
  perfilter
});

function defaultPerfilter() {}

function Tween() {}
Tween.prototype = {
  init
  cur
  run
};
Tween.propHooks = {};
jQuery.each(["toggle", "show", "hide"], function() {});
jQuery.fn.extend({
  fadeTo,
  animate,
  stop,
  finish
});
jQuery.genFx() {}
jQuery.each({
  slideDown,
  slideUp,
  slideToggle,
  fadeIn,
  fadeOut,
  fadeToggle
}, function() {});
jQuery.speed = function() {};
jQuery.easing = {
  linear,
  swing
};
jQuery.times = [];
jQuery.fx.tick = function() {};
jQuery.fx.timer = function() {};
jQuery.fx.interval = 13;
jQuery.fx.start = function() {};
jQuery.fx.stop = function() {};
jQuery.fx.speed = function() {};
原文地址:https://www.cnblogs.com/bobodeboke/p/8617899.html