TextEffect简单的文字特效插件,包括fade、edaf、grow、worg、jumble、slide、edils、dropdown、nwodpord等特效。
jQuery(document).ready(function($) {
$('h1').textEffect();
$('button.non-reverse').on('click', function(e) {
e.preventDefault();
$(this).next().next().css('visibility', 'visible').textEffect($(this).html());
});
$('button.reverse').on('click', function(e) {
e.preventDefault();
var $this = $(this);
var effect = $this.prev().html();
$this.next().css('visibility', 'visible').textEffect({
effect: effect,
reverse: true
});
});
});
相关链接