jQuery实现各种效果的彩虹文字_时代Java(NowJava.com) -JS/jQuery代码 -演示与下载 -时代Java

Lettering.JS

The following are some hokey examples of how you can implement LETTERING.JS.

Letters

The HTML

	<div id="demo1" class="demo">
  <h1>Rainbow</h1>
</div>

The jQuery

$(document).ready(function() {
  $("#demo1 h1").lettering();
});

The Result

Rainbow

Words

$("#demo2 h1").lettering('words');

The Result

Hi, Multi Color

Lines

$("#demo3 p").lettering('lines');

The Result

This is an amazing
Revolution in Typography.
The possibilities are endless:
Coloring, Vertical spacing, and Kerning.

Advanced #1: Chaining 2 Methods

$("#demo4 h1").lettering('words').children("span").lettering();

The Result

Double Rainbow

Advanced #2: Chaining and Styling

$("#demo5 h1").lettering()
	.children("span").css({'display':'inline-block', '-webkit-transform':'rotate(-25deg)'});

The Result

WOOOoo!

代码整理:时代Java(NowJava.com) 

转载请注明出处,此代码仅供学习交流,请勿用于商业用途。

下载代码说明
X关闭

jQuery实现指定标签内文字的各种效果彩虹文字

jQuery实现各种效果的彩虹文字,只需要一句代码就可以实现指定的标签内文字实现彩虹效果,经测试效果非常棒。