【发布时间】:2011-12-11 22:23:20
【问题描述】:
我需要为 textarea 中文本的不透明度设置动画,因此它会消失。当有人按下 Enter 时会发生这种情况。我已经设置了 enter press 的代码,但无法让代码动画工作。 这是我的代码:
$(document).keydown(function(e){
if(e.which === 13){
// here I would like to animate the text
};
});
【问题讨论】:
标签: javascript jquery jquery-animate jquery-events