【发布时间】:2012-09-08 03:46:37
【问题描述】:
我正在尝试像不透明效果这样的动画,它会慢慢地将文本变粗。尝试了通常的animate() 方法,但没有奏效。搜索它,但找不到任何示例。 可以这样做吗?
jQuery:
var Text = $('h1');
Text.click(function() {
Text.animate({'font-weight':'bold'},600)
.delay(200).animate({'font-weight':'normal'},600);
});
【问题讨论】:
-
尝试探索 CSS3 过渡?
-
@Roko nope
/:i've manage to do with text-shadow,但我相信这样会更好。
标签: jquery css animation fonts jquery-animate