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() {};

 

posted @ 2018-03-21 16:34  bobo的学习笔记  阅读(221)  评论(0编辑  收藏  举报