MooTools源码分析

MooTools 1.4 源码分析 Fx.Tween

时间:2015-06-28 15:24来源:网络整理 作者:KKWL 点击:
Extends: Fx.CSS, .element = .parent(options); (arguments.length == 1) { now = property; property = .render(; (!args = Array.flatten(arguments); .property = parsed = .parent(parsed.from, parsed.to); set: .get('tween').cancel().setOptions(opt




Extends: Fx.CSS,

.element = .parent(options);

(arguments.length == 1) {
now = property;
property = .render(;

(!args = Array.flatten(arguments);
.property = parsed = .parent(parsed.from, parsed.to);



set: .get('tween').cancel().setOptions(options);
;
tween = tween = tween;


Element.implement({

;

fade = (how) {
method = 'start';
'out': method = 'start';
'show': method = 'set';
'hide': method = 'set';
'toggle': flag = to = flag ? 0 : 1;
.store('fade:flag', !flag);
:
(!toggle) { fade[method]('opacity', to);
(method == 'set' || to != 0) {
.element.setStyle('visibility', 'hidden');
;

(!end) {
end = end = (end == 'transparent') ? '#fff' : end;
tween = tween.start('background-color', start || '#ffff88', end).chain(.setStyle('background-color', tween.callChain();
;

------分隔线----------------------------