jQuery实现各种效果的彩虹文字 -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!

下载代码说明
X关闭

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

收集一款jQuery彩虹文字特效,实现指定标签内的彩虹文字效果,使用有jquery.lettering.js,演示文件告诉你如何使用这个效果插件,方法挺简单,相信您看了就会了,经测试效果还不错,希望对大家有所帮助。