jquery字体变换效果

版权:原创 更新时间:1年以上
[该文章底部包含文件资源,可根据自己情况,决定是否下载资源使用,时间>金钱,如有需要,立即查看资源]

以下是 jquery字体变换效果 的示例演示效果:

当前平台(PC电脑)
  • 平台:

部分效果截图1:

jquery字体变换效果

部分效果截图2:

jquery字体变换效果

部分效果截图3:

jquery字体变换效果

HTML代码(index.html):

<!DOCTYPE html>
<html lang="en">
    <head>
        <title>Typography Effects with CSS3 and jQuery</title>
        <meta charset="UTF-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 
        <meta name="viewport" content="width=device-width, initial-scale=1.0"> 
        <link rel="stylesheet" type="text/css" href="css/demo.css" />
        <link rel="stylesheet" type="text/css" href="css/style1.css" />
        <link href='http://fonts.googleapis.com/css?family=Arapey' rel='stylesheet' type='text/css' />
    </head>
    <body>
        <div class="container">

            <h1></h1>
			<p class="demos">
				<a class="current-demo" href="index.html">Demo 1</a>
				<a href="index2.html">Demo 2</a>
				<a href="index3.html">Demo 3</a>
				<a href="index4.html">Demo 4</a>
				<a href="index5.html">Demo 5</a>
				<a href="index6.html">Demo 6</a>
				<a href="index7.html">Demo 7</a>
			</p>
            <div id="letter-container" class="letter-container">
				<h2>
					<a href="#">Chaos</a>
					<a href="#">Order</a>
				</h2>
			</div>
			<div class="content">
				<p>One morning, when Gregor Samsa woke from troubled dreams, he found himself transformed in his bed into a horrible vermin. He lay on his armour-like back, and if he lifted his head a little he could see his brown belly, slightly domed and divided by arches into stiff sections. The bedding was hardly able to cover it and seemed ready to slide off any moment.</p>

				<p>His many legs, pitifully thin compared with the size of the rest of him, waved about helplessly as he looked. "What's happened to me? " he thought. It wasn't a dream. His room, a proper human room although a little too small, lay peacefully between its four familiar walls.</p>

				<p>A collection of textile samples lay spread out on the table - Samsa was a travelling salesman - and above it there hung a picture that he had recently cut out of an illustrated magazine and housed in a nice, gilded frame. It showed a lady fitted out with a fur hat and fur boa who sat upright, raising a heavy fur muff that covered the whole of her lower arm towards the viewer.</p>

				<p>Gregor then turned to look out the window at the dull weather. Drops of rain could be heard hitting the pane, which made him feel quite sad. "How about if I sleep a little bit longer and forget all this nonsense", he thought, but that was something he was unable to do because he was used to sleeping on his right, and in his present state couldn't get into that position. However hard he threw himself onto his right, he always rolled back to where he was.</p>
			</div>
			<script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
			<script type="text/javascript" src="js/jquery.lettering.js"></script>
			<script type="text/javascript">
				$(function() {
					$("#letter-container h2 a").lettering();
				});
			</script>
        </div>
    </body>
</html>









HTML代码(index2.html):

<!DOCTYPE html>
<html lang="en">
    <head>
        <title>Typography Effects with CSS3 and jQuery</title>
        <meta charset="UTF-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 
        <meta name="viewport" content="width=device-width, initial-scale=1.0"> 
        <link rel="stylesheet" type="text/css" href="css/demo.css" />
        <link rel="stylesheet" type="text/css" href="css/style2.css" />
        <link href='http://fonts.googleapis.com/css?family=Lancelot|Abril+Fatface' rel='stylesheet' type='text/css' />
    </head>
    <body>
        <div class="container">
            <h1></h1>
			<p class="demos">
				<a href="index.html">Demo 1</a>
				<a class="current-demo" href="index2.html">Demo 2</a>
				<a href="index3.html">Demo 3</a>
				<a href="index4.html">Demo 4</a>
				<a href="index5.html">Demo 5</a>
				<a href="index6.html">Demo 6</a>
				<a href="index7.html">Demo 7</a>
			</p>
            <div id="letter-container" class="letter-container">
				<h2><a href="#">Faces</a></h2>
			</div>
			<div class="content">
				<p>Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts. Separated they live in Bookmarksgrove right at the coast of the Semantics, a large language ocean. A small river named Duden flows by their place and supplies it with the necessary regelialia. It is a paradisematic country, in which roasted parts of sentences fly into your mouth.</p>

				<p>Even the all-powerful Pointing has no control about the blind texts it is an almost unorthographic life One day however a small line of blind text by the name of Lorem Ipsum decided to leave for the far World of Grammar. The Big Oxmox advised her not to do so, because there were thousands of bad Commas, wild Question Marks and devious Semikoli, but the Little Blind Text didn’t listen.</p>

				<p>She packed her seven versalia, put her initial into the belt and made herself on the way. When she reached the first hills of the Italic Mountains, she had a last view back on the skyline of her hometown Bookmarksgrove, the headline of Alphabet Village and the subline of her own road, the Line Lane. Pityful a rethoric question ran over her cheek, then she continued her way.</p>
			</div>
            <script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
			<script type="text/javascript" src="js/jquery.lettering.js"></script>
			<script type="text/javascript">
				$(function() {
					$("#letter-container h2 a").lettering();
				});
			</script>
        </div>
    </body>
</html>









JS代码(modernizr.custom.40443.js):

/* Modernizr 2.0.6 (Custom Build) | MIT & BSD * Build:http://www.modernizr.com/download/#-backgroundsize-csstransforms3d-iepp-cssclasses-teststyles-testprop-testallprops-prefixes-domprefixes-load */
;
	window.Modernizr=function(a,b,c){
	function C(a,b){
	var c=a.charAt(0).toUpperCase()+a.substr(1),d=(a+" "+o.join(c+" ")+c).split(" ");
	return B(d,b)}
function B(a,b){
	for(var d in a)if(k[a[d]]!==c)return b=="pfx"?a[d]:!0;
	return!1}
function A(a,b){
	return!!~(""+a).indexOf(b)}
function z(a,b){
	return typeof a===b}
function y(a,b){
	return x(n.join(a+";
	")+(b||""))}
function x(a){
	k.cssText=a}
var d="2.0.6",e={
}
,f=!0,g=b.documentElement,h=b.head||b.getElementsByTagName("head")[0],i="modernizr",j=b.createElement(i),k=j.style,l,m=Object.prototype.toString,n=" -webkit- -moz- -o- -ms- -khtml- ".split(" "),o="Webkit Moz O ms Khtml".split(" "),p={
}
,q={
}
,r={
}
,s=[],t=function(a,c,d,e){
	var f,h,j,k=b.createElement("div");
	if(parseInt(d,10))while(d--)j=b.createElement("div"),j.id=e?e[d]:i+(d+1),k.appendChild(j);
	f=["&shy;
	","<style>",a,"</style>"].join(""),k.id=i,k.innerHTML+=f,g.appendChild(k),h=c(k,a),k.parentNode.removeChild(k);
	return!!h}
,u,v={
}
.hasOwnProperty,w;
	!z(v,c)&&!z(v.call,c)?w=function(a,b){
	return v.call(a,b)}
:w=function(a,b){
	return b in a&&z(a.constructor.prototype[b],c)}
;
	var D=function(a,c){
	var d=a.join(""),f=c.length;
	t(d,function(a,c){
	var d=b.styleSheets[b.styleSheets.length-1],g=d.cssRules&&d.cssRules[0]?d.cssRules[0].cssText:d.cssText||"",h=a.childNodes,i={
}
;
	while(f--)i[h[f].id]=h[f];
	e.csstransforms3d=i.csstransforms3d.offsetLeft===9}
,f,c)}
([,["@media (",n.join("transform-3d),("),i,")","{
	#csstransforms3d{
	left:9px;
	position:absolute}
}
"].join("")],[,"csstransforms3d"]);
	p.backgroundsize=function(){
	return C("backgroundSize")}
,p.csstransforms3d=function(){
	var a=!!B(["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"]);
	a&&"webkitPerspective"in g.style&&(a=e.csstransforms3d);
	return a}
;
	for(var E in p)w(p,E)&&(u=E.toLowerCase(),e[u]=p[E](),s.push((e[u]?"":"no-")+u));
	x(""),j=l=null,a.attachEvent&&function(){
	var a=b.createElement("div");
	a.innerHTML="<elem></elem>";
	return a.childNodes.length!==1}
()&&function(a,b){
	function s(a){
	var b=-1;
	while(++b<g)a.createElement(f[b])}
a.iepp=a.iepp||{
}
;
	var d=a.iepp,e=d.html5elements||"abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",f=e.split("|"),g=f.length,h=new RegExp("(^|\\s)("+e+")","gi"),i=new RegExp("<(/*)("+e+")","gi"),j=/^\s*[\{
	\}
]\s*$/,k=new RegExp("(^|[^\\n]*?\\s)("+e+")([^\\n]*)({
	[\\n\\w\\W]*?}
)","gi"),l=b.createDocumentFragment(),m=b.documentElement,n=m.firstChild,o=b.createElement("body"),p=b.createElement("style"),q=/print|all/,r;
	d.getCSS=function(a,b){
	if(a+""===c)return"";
	var e=-1,f=a.length,g,h=[];
	while(++e<f){
	g=a[e];
	if(g.disabled)continue;
	b=g.media||b,q.test(b)&&h.push(d.getCSS(g.imports,b),g.cssText),b="all"}
return h.join("")}
,d.parseCSS=function(a){
	var b=[],c;
	while((c=k.exec(a))!=null)b.push(((j.exec(c[1])?"\n":c[1])+c[2]+c[3]).replace(h,"$1.iepp_$2")+c[4]);
	return b.join("\n")}
,d.writeHTML=function(){
	var a=-1;
	r=r||b.body;
	while(++a<g){
	var c=b.getElementsByTagName(f[a]),d=c.length,e=-1;
	while(++e<d)c[e].className.indexOf("iepp_")<0&&(c[e].className+=" iepp_"+f[a])}
l.appendChild(r),m.appendChild(o),o.className=r.className,o.id=r.id,o.innerHTML=r.innerHTML.replace(i,"<$1font")}
,d._beforePrint=function(){
	p.styleSheet.cssText=d.parseCSS(d.getCSS(b.styleSheets,"all")),d.writeHTML()}
,d.restoreHTML=function(){
	o.innerHTML="",m.removeChild(o),m.appendChild(r)}
,d._afterPrint=function(){
	d.restoreHTML(),p.styleSheet.cssText=""}
,s(b),s(l);
	d.disablePP||(n.insertBefore(p,n.firstChild),p.media="print",p.className="iepp-printshim",a.attachEvent("onbeforeprint",d._beforePrint),a.attachEvent("onafterprint",d._afterPrint))}
(a,b),e._version=d,e._prefixes=n,e._domPrefixes=o,e.testProp=function(a){
	return B([a])}
,e.testAllProps=C,e.testStyles=t,g.className=g.className.replace(/\bno-js\b/,"")+(f?" js "+s.join(" "):"");
	return e}
(this,this.document),function(a,b,c){
	function k(a){
	return!a||a=="loaded"||a=="complete"}
function j(){
	var a=1,b=-1;
	while(p.length- ++b)if(p[b].s&&!(a=p[b].r))break;
	a&&g()}
function i(a){
	var c=b.createElement("script"),d;
	c.src=a.s,c.onreadystatechange=c.onload=function(){
	!d&&k(c.readyState)&&(d=1,j(),c.onload=c.onreadystatechange=null)}
,m(function(){
	d||(d=1,j())}
,H.errorTimeout),a.e?c.onload():n.parentNode.insertBefore(c,n)}
function h(a){
	var c=b.createElement("link"),d;
	c.href=a.s,c.rel="stylesheet",c.type="text/css";
	if(!a.e&&(w||r)){
	var e=function(a){
	m(function(){
	if(!d)try{
	a.sheet.cssRules.length?(d=1,j()):e(a)}
catch(b){
	b.code==1e3||b.message=="security"||b.message=="denied"?(d=1,m(function(){
	j()}
,0)):e(a)}
}
,0)}
;
	e(c)}
else c.onload=function(){
	d||(d=1,m(function(){
	j()}
,0))}
,a.e&&c.onload();
	m(function(){
	d||(d=1,j())}
,H.errorTimeout),!a.e&&n.parentNode.insertBefore(c,n)}
function g(){
	var a=p.shift();
	q=1,a?a.t?m(function(){
	a.t=="c"?h(a):i(a)}
,0):(a(),j()):q=0}
function f(a,c,d,e,f,h){
	function i(){
	!o&&k(l.readyState)&&(r.r=o=1,!q&&j(),l.onload=l.onreadystatechange=null,m(function(){
	u.removeChild(l)}
,0))}
var l=b.createElement(a),o=0,r={
	t:d,s:c,e:h}
;
	l.src=l.data=c,!s&&(l.style.display="none"),l.width=l.height="0",a!="object"&&(l.type=d),l.onload=l.onreadystatechange=i,a=="img"?l.onerror=i:a=="script"&&(l.onerror=function(){
	r.e=r.r=1,g()}
),p.splice(e,0,r),u.insertBefore(l,s?null:n),m(function(){
	o||(u.removeChild(l),r.r=r.e=o=1,j())}
,H.errorTimeout)}
function e(a,b,c){
	var d=b=="c"?z:y;
	q=0,b=b||"j",C(a)?f(d,a,b,this.i++,l,c):(p.splice(this.i++,0,a),p.length==1&&g());
	return this}
function d(){
	var a=H;
	a.loader={
	load:e,i:0}
;
	return a}
var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={
}
.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=r&&!s,u=s?l:n.parentNode,v=a.opera&&o.call(a.opera)=="[object Opera]",w="webkitAppearance"in l.style,x=w&&"async"in b.createElement("script"),y=r?"object":v||x?"img":"script",z=w?"img":y,A=Array.isArray||function(a){
	return o.call(a)=="[object Array]"}
,B=function(a){
	return Object(a)===a}
,C=function(a){
	return typeof a=="string"}
,D=function(a){
	return o.call(a)=="[object Function]"}
,E=[],F={
}
,G,H;
	H=function(a){
	function f(a){
	var b=a.split("!"),c=E.length,d=b.pop(),e=b.length,f={
	url:d,origUrl:d,prefixes:b}
,g,h;
	for(h=0;
	h<e;
	h++)g=F[b[h]],g&&(f=g(f));
	for(h=0;
	h<c;
	h++)f=E[h](f);
	return f}
function e(a,b,e,g,h){
	var i=f(a),j=i.autoCallback;
	if(!i.bypass){
	b&&(b=D(b)?b:b[a]||b[g]||b[a.split("/").pop().split("?")[0]]);
	if(i.instead)return i.instead(a,b,e,g,h);
	e.load(i.url,i.forceCSS||!i.forceJS&&/css$/.test(i.url)?"c":c,i.noexec),(D(b)||D(j))&&e.load(function(){
	d(),b&&b(i.origUrl,h,g),j&&j(i.origUrl,h,g)}
)}
}
function b(a,b){
	function c(a){
	if(C(a))e(a,h,b,0,d);
	else if(B(a))for(i in a)a.hasOwnProperty(i)&&e(a[i],h,b,i,d)}
var d=!!a.test,f=d?a.yep:a.nope,g=a.load||a.both,h=a.callback,i;
	c(f),c(g),a.complete&&b.load(a.complete)}
var g,h,i=this.yepnope.loader;
	if(C(a))e(a,0,i,0);
	else if(A(a))for(g=0;
	g<a.length;
	g++)h=a[g],C(h)?e(h,0,i,0):A(h)?H(h):B(h)&&b(h,i);
	else B(a)&&b(a,i)}
,H.addPrefix=function(a,b){
	F[a]=b}
,H.addFilter=function(a){
	E.push(a)}
,H.errorTimeout=1e4,b.readyState==null&&b.addEventListener&&(b.readyState="loading",b.addEventListener("DOMContentLoaded",G=function(){
	b.removeEventListener("DOMContentLoaded",G,0),b.readyState="complete"}
,0)),a.yepnope=d()}
(this,this.document),Modernizr.load=function(){
	yepnope.apply(window,[].slice.call(arguments,0))}
;
	

CSS代码(style1.css):

body{background:#fff url(../images/stucco.png) repeat top left;font-family:'Arapey',Arial,sans-serif;color:#000;}
.letter-container{border-bottom:1px dashed rgba(0,0,0,0.4);border-top:1px dashed rgba(0,0,0,0.4);margin:20px;padding:40px 10px;text-align:center;font-family:'Arapey',Arial,sans-serif;}
.letter-container h2{text-align:center;position:relative;height:180px;width:800px;display:inline-block;}
.letter-container h2 a{text-align:center;text-transform:uppercase;font-size:150px;position:absolute;width:800px;height:180px;top:0px;left:50%;margin-left:-400px;-webkit-transition:all 0.3s linear;-moz-transition:all 0.3s linear;-o-transition:all 0.3s linear;-ms-transition:all 0.3s linear;transition:all 0.3s linear;}
.letter-container h2 a:nth-child(2){opacity:0;}
.letter-container h2 a span{display:inline-block;position:relative;width:120px;margin:0px;background:#333;-webkit-transition:all 0.3s linear;-moz-transition:all 0.3s linear;-o-transition:all 0.3s linear;-ms-transition:all 0.3s linear;transition:all 0.3s linear;text-shadow:2px 2px 2px rgba(0,0,0,0.6),1px 1px 2px rgba(0,0,0,0.4),0px 0px 2px rgba(255,255,255,0.9);}
.letter-container h2 a span:nth-child(odd),.letter-container h2 a span.char1{-webkit-transform:skewY(10deg);-moz-transform:skewY(10deg);-o-transform:skewY(10deg);-ms-transform:skewY(10deg);transform:skewY(10deg);background:#333;-webkit-box-shadow:0px 3px 5px rgba(0,0,0,0.3);-moz-box-shadow:0px 3px 5px rgba(0,0,0,0.3);box-shadow:0px 3px 5px rgba(0,0,0,0.3);z-index:10;}
.letter-container h2 a span:nth-child(even),.letter-container h2 a span.char2{-webkit-transform:skewY(-10deg);-moz-transform:skewY(-10deg);-o-transform:skewY(-10deg);-ms-transform:skewY(-10deg);transform:skewY(-10deg);background:#666;-webkit-box-shadow:0px 3px 5px rgba(0,0,0,0.3);-moz-box-shadow:0px 3px 5px rgba(0,0,0,0.3);box-shadow:0px 3px 5px rgba(0,0,0,0.3);z-index:10;}
.letter-container h2:hover a:nth-child(1){opacity:0;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";filter:alpha(opacity=90);}
.letter-container h2:hover a:nth-child(2){opacity:1;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=90)";filter:alpha(opacity=90);}
.letter-container h2:hover a span{-webkit-transform:skewY(0deg);-moz-transform:skewY(0deg);-o-transform:skewY(0deg);-ms-transform:skewY(0deg);transform:skewY(0deg);background:#680121;}
.letter-container h2 a span:hover{color:#f6b0c5;}

CSS代码(style2.css):

body{background:#333 url(../images/black_linen.jpg) repeat top left;font-family:'Lancelot',Arial,sans-serif;}
.letter-container{border-bottom:1px dashed rgba(255,255,255,0.1);border-top:1px dashed rgba(255,255,255,0.1);margin:20px;padding:40px 10px;font-family:'Abril Fatface',Arial,sans-serif;}
.letter-container h2{text-align:center;}
.letter-container h2 a{text-align:center;padding:20px;text-transform:uppercase;}
.letter-container h2 a span{display:inline-block;position:relative;width:200px;height:140px;background:#000;line-height:140px;font-size:120px;margin:3px;background-position:50% 0%;background-size:200px 267px;color:#fff;text-shadow:0px 0px 1px #fff,2px 2px 5px rgba(0,0,0,0.4);border-color:#fff;border-style:solid;border-width:10px 10px 45px 10px;-webkit-box-shadow:2px 2px 8px 4px rgba(0,0,0,0.9),0px 0px 2px rgba(0,0,0,0.2) inset;-moz-box-shadow:2px 2px 8px 4px rgba(0,0,0,0.9),0px 0px 2px rgba(0,0,0,0.2) inset;box-shadow:2px 2px 8px 4px rgba(0,0,0,0.9),0px 0px 2px rgba(0,0,0,0.2) inset;-webkit-transition:all 0.3s ease-in-out;-moz-transition:all 0.3s ease-in-out;-o-transition:all 0.3s ease-in-out;-ms-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out;}
.letter-container h2 a span:before{content:'';position:absolute;width:220px;height:195px;top:-10px;left:-10px;background:transparent;background:-moz-linear-gradient(-45deg,rgba(14,14,14,0.32) 0%,rgba(127,127,127,0.21) 18%,rgba(170,170,170,0.11) 34%,rgba(201,201,201,0) 51%,rgba(242,242,242,0.1) 66%,rgba(255,255,255,0.18) 79%,rgba(71,69,69,0.32) 100%);background:-webkit-gradient(linear,left top,right bottom,color-stop(0%,rgba(14,14,14,0.32)),color-stop(18%,rgba(127,127,127,0.21)),color-stop(34%,rgba(170,170,170,0.11)),color-stop(51%,rgba(201,201,201,0)),color-stop(66%,rgba(242,242,242,0.1)),color-stop(79%,rgba(255,255,255,0.18)),color-stop(100%,rgba(71,69,69,0.32)));background:-webkit-linear-gradient(-45deg,rgba(14,14,14,0.32) 0%,rgba(127,127,127,0.21) 18%,rgba(170,170,170,0.11) 34%,rgba(201,201,201,0) 51%,rgba(242,242,242,0.1) 66%,rgba(255,255,255,0.18) 79%,rgba(71,69,69,0.32) 100%);background:-o-linear-gradient(-45deg,rgba(14,14,14,0.32) 0%,rgba(127,127,127,0.21) 18%,rgba(170,170,170,0.11) 34%,rgba(201,201,201,0) 51%,rgba(242,242,242,0.1) 66%,rgba(255,255,255,0.18) 79%,rgba(71,69,69,0.32) 100%);background:-ms-linear-gradient(-45deg,rgba(14,14,14,0.32) 0%,rgba(127,127,127,0.21) 18%,rgba(170,170,170,0.11) 34%,rgba(201,201,201,0) 51%,rgba(242,242,242,0.1) 66%,rgba(255,255,255,0.18) 79%,rgba(71,69,69,0.32) 100%);background:linear-gradient(-45deg,rgba(14,14,14,0.32) 0%,rgba(127,127,127,0.21) 18%,rgba(170,170,170,0.11) 34%,rgba(201,201,201,0) 51%,rgba(242,242,242,0.1) 66%,rgba(255,255,255,0.18) 79%,rgba(71,69,69,0.32) 100%);filter:progid:DXImageTransform.Microsoft.gradient( startColorstr='#520e0e0e',endColorstr='#52474545',GradientType=1 );}
.letter-container h2 a span:nth-child(even){-webkit-transform:rotate(3deg) translateZ(0);-moz-transform:rotate(3deg);-o-transform:rotate(3deg);-ms-transform:rotate(3deg);transform:rotate(3deg);}
.letter-container h2 a span:nth-child(odd){-webkit-transform:rotate(-5deg) translateZ(0);-moz-transform:rotate(-5deg);-o-transform:rotate(-5deg);-ms-transform:rotate(-5deg);transform:rotate(-5deg);}
.letter-container span.char1{background-image:url(../images/1.jpg);}
.letter-container span.char2{background-image:url(../images/2.jpg);}
.letter-container span.char3{background-image:url(../images/3.jpg);}
.letter-container span.char4{background-image:url(../images/4.jpg);}
.letter-container span.char5{background-image:url(../images/5.jpg);}
.letter-container h2 a:hover span:nth-child(even){-webkit-transform:scale(0.9) rotate(-5deg) translateZ(0);-moz-transform:scale(0.9) rotate(-5deg);-o-transform:scale(0.9) rotate(-5deg);-ms-transform:scale(0.9) rotate(-5deg);transform:scale(0.9) rotate(-5deg);}
.letter-container h2 a:hover span:nth-child(odd){-webkit-transform:scale(0.9) rotate(3deg) translateZ(0);-moz-transform:scale(0.9) rotate(3deg);-o-transform:scale(0.9) rotate(3deg);ms-transform:scale(0.9) rotate(3deg);transform:scale(0.9) rotate(3deg);}
.letter-container h2 a span:nth-child(even):hover,.letter-container h2 a span:nth-child(odd):hover{-webkit-animation:moveImg 9s linear infinite forwards;-moz-animation:moveImg 9s linear infinite forwards;-o-animation:moveImg 9s linear infinite forwards;-ms-animation:moveImg 9s linear infinite forwards;animation:moveImg 9s linear infinite forwards;color:rgba(255,255,255,0.4);text-shadow:0px 0px 5px rgba(0,0,0,0.1);-webkit-transform:scale(1.1);-moz-transform:scale(1.1);-o-transform:scale(1.1);-ms-transform:scale(1.1);transform:scale(1.1);z-index:10;-moz-box-shadow:2px 2px 20px 4px rgba(0,0,0,0.6),0px 0px 2px rgba(0,0,0,0.2) inset;-webkit-box-shadow:2px 2px 20px 4px rgba(0,0,0,0.6),0px 0px 2px rgba(0,0,0,0.2) inset;box-shadow:2px 2px 20px 4px rgba(0,0,0,0.6),0px 0px 2px rgba(0,0,0,0.2) inset;}
@-webkit-keyframes moveImg{0%{background-position:50% 0%;}
50%{background-position:50% 100%;}
100%{background-position:50% 0%;}
}
@-moz-keyframes moveImg{0%{background-position:50% 0%;}
50%{background-position:50% 100%;}
100%{background-position:50% 0%;}
}
@keyframes moveImg{0%{background-position:50% 0%;}
50%{background-position:50% 100%;}
100%{background-position:50% 0%;}
}
附件:下载该文件资源,减少时间成本(增值服务)
留言
该资源可下载
File Source
.rar
466.05 KB
Html CSS3特效
最新结算
jquery虚拟键盘中文打字效果js代码
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
jquery虚拟键盘中文打字效果js代码
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
HTML5实现CSS滤镜图片切换特效代码
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
jQuery头像裁剪插件cropbox js代码
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
jQuery头像裁剪插件cropbox js代码
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
jQuery+css3实现信封效果
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
我们力求给您提供有用的文章,再此基础上,会附加营收资源,不做任何广告,让平台可以更好发展 若您发现您的权利被侵害,或使用了您的版权,请发邮件联系 sunlifel@foxmail.com ggbig觉得 : 不提供源码的文章不是好文章
合作伙伴
联系我们
  • QQ:21499807
  • 邮箱:sunlifel@foxmail.com
  • QQ扫一扫加QQ
    QQ扫一扫
Copyright 2023-2024 ggbig.com·皖ICP备2023004211号-1
打赏文章