【发布时间】:2011-11-21 21:58:42
【问题描述】:
我正在使用 Mootools 1.3.1,我想使用 fx.morph 为 div 设置动画,但在浏览器调试控制台中我得到了
TypeError: Result of expression 'c' [null] is not an object.#
mootools-core-1.3.1.js:394
我没有构建 mootools 脚本,但我必须使用此版本使用 mootools 添加更多动画和功能。
我的脚本如下所示:
var myEffect = new Fx.Morph("div.tile", {
duration: 'short',
transition: Fx.Transitions.Sine.easeOut
});
myEffect.start({
'height': 100, // Morphs the height from the current to 100px.
'width': 300 // Morphs the width from the current to 300px.
});
【问题讨论】:
标签: javascript css animation mootools