選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

morphext.min-40d1c5fa.js 1003 B

9ヶ月前
1
  1. /*! Morphext - v2.4.4 - 2015-05-21 */(function(t){function e(i,h){this.element=t(i),this.settings=t.extend({},n,h),this._defaults=n,this._init()}var s="Morphext",n={animation:"bounceIn",separator:",",speed:2e3,complete:t.noop};e.prototype={_init:function(){var i=this;this.phrases=[],this.element.addClass("morphext"),t.each(this.element.text().split(this.settings.separator),function(h,a){i.phrases.push(t.trim(a))}),this.index=-1,this.animate(),this.start()},animate:function(){this.index=++this.index%this.phrases.length,this.element[0].innerHTML='<span class="animated '+this.settings.animation+'">'+this.phrases[this.index]+"</span>",t.isFunction(this.settings.complete)&&this.settings.complete.call(this)},start:function(){var i=this;this._interval=setInterval(function(){i.animate()},this.settings.speed)},stop:function(){this._interval=clearInterval(this._interval)}},t.fn[s]=function(i){return this.each(function(){t.data(this,"plugin_"+s)||t.data(this,"plugin_"+s,new e(this,i))})}})(jQuery);