3D折页效果立体焦点图代码jQuery轮播滚动广告js代码

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

以下是 3D折页效果立体焦点图代码jQuery轮播滚动广告js代码 的示例演示效果:

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

部分效果截图:

3D折页效果立体焦点图代码jQuery轮播滚动广告js代码

HTML代码(index.html):

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta name="keywords" content="JS代码,焦点图,JS广告代码,JS特效代码" />
<meta name="description" content="此代码内容为3D折页效果立体焦点图代码(jQuery),属于站长常用代码" />
<title>3D折页效果立体焦点图代码(jQuery)</title>
<link rel="stylesheet" type="text/css" href="css/demo.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script type="text/javascript" src="js/modernizr.custom.js"></script> 
<!--[if lte IE 8]><style>.main{display:none;} .support-note .note-ie{display:block;}</style><![endif]-->
</head>
<body>
<!-- 代码 开始 -->
<div class="container">
    <div class="main">
        <div class="fs-slider" id="fs-slider">
            <figure>
                <img src="images/1.jpg" alt="image01" />
                <figcaption>
                    <h3>Eloquence</h3>
                    <p>American apparel flexitarian put a bird on it, mixtape typewriter irony aesthetic. </p>
                </figcaption>
            </figure>
            
            <figure>
                <img src="images/2.jpg" alt="image02" />
                <figcaption>
                    <h3>Quintessential</h3>
                    <p>Cardigan craft beer mixtape, skateboard forage fixie truffaut messenger bag. </p>
                </figcaption>
            </figure>
            
            <figure>
                <img src="images/3.jpg" alt="image03" />
                <figcaption>
                    <h3>Surreptitious</h3>
                    <p>Truffaut iphone flexitarian, banh mi thundercats cliche wolf biodiesel gastropub. </p>
                </figcaption>
            </figure>
            
            <figure>
                <img src="images/4.jpg" alt="image04" />
                <figcaption>
                    <h3>Imbroglio</h3>
                    <p>Scenester fixie pickled, shoreditch fugiat enim craft beer retro mustache.</p>
                </figcaption>
            </figure>
            
            <figure>
                <img src="images/5.jpg" alt="image05" />
                <figcaption>
                    <h3>Lissome</h3>
                    <p>Aute sunt aliqua do sapiente. Food truck ut sustainable thundercats four loko.</p>
                </figcaption>
            </figure>
        </div><!-- /fs-slider -->
    </div>
</div>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.imgslider.js"></script>
<script type="text/javascript">
    $(function() {
        $( '#fs-slider' ).imgslider();
    });
</script>
</body>
</html>

JS代码(modernizr.custom.js):

/* Modernizr 2.6.1 (Custom Build) | MIT & BSD * Build:http://modernizr.com/download/#-generatedcontent-csstransforms-csstransforms3d-csstransitions-touch-shiv-cssclasses-prefixed-teststyles-testprop-testallprops-prefixes-domprefixes-load */
;
	window.Modernizr=function(a,b,c){
	function A(a){
	j.cssText=a}
function B(a,b){
	return A(n.join(a+";
	")+(b||""))}
function C(a,b){
	return typeof a===b}
function D(a,b){
	return!!~(""+a).indexOf(b)}
function E(a,b){
	for(var d in a){
	var e=a[d];
	if(!D(e,"-")&&j[e]!==c)return b=="pfx"?e:!0}
return!1}
function F(a,b,d){
	for(var e in a){
	var f=b[a[e]];
	if(f!==c)return d===!1?a[e]:C(f,"function")?f.bind(d||b):f}
return!1}
function G(a,b,c){
	var d=a.charAt(0).toUpperCase()+a.slice(1),e=(a+" "+p.join(d+" ")+d).split(" ");
	return C(b,"string")||C(b,"undefined")?E(e,b):(e=(a+" "+q.join(d+" ")+d).split(" "),F(e,b,c))}
var d="2.6.1",e={
}
,f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k,l=":)",m={
}
.toString,n=" -webkit- -moz- -o- -ms- ".split(" "),o="Webkit Moz O ms",p=o.split(" "),q=o.toLowerCase().split(" "),r={
}
,s={
}
,t={
}
,u=[],v=u.slice,w,x=function(a,c,d,e){
	var f,i,j,k=b.createElement("div"),l=b.body,m=l?l:b.createElement("body");
	if(parseInt(d,10))while(d--)j=b.createElement("div"),j.id=e?e[d]:h+(d+1),k.appendChild(j);
	return f=["&#173;
	",'<style id="s',h,'">',a,"</style>"].join(""),k.id=h,(l?k:m).innerHTML+=f,m.appendChild(k),l||(m.style.background="",g.appendChild(m)),i=c(k,a),l?k.parentNode.removeChild(k):m.parentNode.removeChild(m),!!i}
,y={
}
.hasOwnProperty,z;
	!C(y,"undefined")&&!C(y.call,"undefined")?z=function(a,b){
	return y.call(a,b)}
:z=function(a,b){
	return b in a&&C(a.constructor.prototype[b],"undefined")}
,Function.prototype.bind||(Function.prototype.bind=function(b){
	var c=this;
	if(typeof c!="function")throw new TypeError;
	var d=v.call(arguments,1),e=function(){
	if(this instanceof e){
	var a=function(){
}
;
	a.prototype=c.prototype;
	var f=new a,g=c.apply(f,d.concat(v.call(arguments)));
	return Object(g)===g?g:f}
return c.apply(b,d.concat(v.call(arguments)))}
;
	return e}
),r.touch=function(){
	var c;
	return"ontouchstart"in a||a.DocumentTouch&&b instanceof DocumentTouch?c=!0:x(["@media (",n.join("touch-enabled),("),h,")","{
	#modernizr{
	top:9px;
	position:absolute}
}
"].join(""),function(a){
	c=a.offsetTop===9}
),c}
,r.csstransforms=function(){
	return!!G("transform")}
,r.csstransforms3d=function(){
	var a=!!G("perspective");
	return a&&"webkitPerspective"in g.style&&x("@media (transform-3d),(-webkit-transform-3d){
	#modernizr{
	left:9px;
	position:absolute;
	height:3px;
}
}
",function(b,c){
	a=b.offsetLeft===9&&b.offsetHeight===3}
),a}
,r.csstransitions=function(){
	return G("transition")}
,r.generatedcontent=function(){
	var a;
	return x(['#modernizr:after{
	content:"',l,'";
	visibility:hidden}
'].join(""),function(b){
	a=b.offsetHeight>=1}
),a}
;
	for(var H in r)z(r,H)&&(w=H.toLowerCase(),e[w]=r[H](),u.push((e[w]?"":"no-")+w));
	return e.addTest=function(a,b){
	if(typeof a=="object")for(var d in a)z(a,d)&&e.addTest(d,a[d]);
	else{
	a=a.toLowerCase();
	if(e[a]!==c)return e;
	b=typeof b=="function"?b():b,f&&(g.className+=" "+(b?"":"no-")+a),e[a]=b}
return e}
,A(""),i=k=null,function(a,b){
	function k(a,b){
	var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;
	return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}
function l(){
	var a=r.elements;
	return typeof a=="string"?a.split(" "):a}
function m(a){
	var b=i[a[g]];
	return b||(b={
}
,h++,a[g]=h,i[h]=b),b}
function n(a,c,f){
	c||(c=b);
	if(j)return c.createElement(a);
	f||(f=m(c));
	var g;
	return f.cache[a]?g=f.cache[a].cloneNode():e.test(a)?g=(f.cache[a]=f.createElem(a)).cloneNode():g=f.createElem(a),g.canHaveChildren&&!d.test(a)?f.frag.appendChild(g):g}
function o(a,c){
	a||(a=b);
	if(j)return a.createDocumentFragment();
	c=c||m(a);
	var d=c.frag.cloneNode(),e=0,f=l(),g=f.length;
	for(;
	e<g;
	e++)d.createElement(f[e]);
	return d}
function p(a,b){
	b.cache||(b.cache={
}
,b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){
	return r.shivMethods?n(c,a,b):b.createElem(c)}
,a.createDocumentFragment=Function("h,f","return function(){
	var n=f.cloneNode(),c=n.createElement;
	h.shivMethods&&("+l().join().replace(/\w+/g,function(a){
	return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'}
)+");
	return n}
")(r,b.frag)}
function q(a){
	a||(a=b);
	var c=m(a);
	return r.shivCSS&&!f&&!c.hasCSS&&(c.hasCSS=!!k(a,"article,aside,figcaption,figure,footer,header,hgroup,nav,section{
	display:block}
mark{
	background:#FF0;
	color:#000}
")),j||p(a,c),a}
var c=a.html5||{
}
,d=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,e=/^<|^(?:a|b|button|code|div|fieldset|form|h1|h2|h3|h4|h5|h6|i|iframe|img|input|label|li|link|ol|option|p|param|q|script|select|span|strong|style|table|tbody|td|textarea|tfoot|th|thead|tr|ul)$/i,f,g="_html5shiv",h=0,i={
}
,j;
	(function(){
	try{
	var a=b.createElement("a");
	a.innerHTML="<xyz></xyz>",f="hidden"in a,j=a.childNodes.length==1||function(){
	b.createElement("a");
	var a=b.createDocumentFragment();
	return typeof a.cloneNode=="undefined"||typeof a.createDocumentFragment=="undefined"||typeof a.createElement=="undefined"}
()}
catch(c){
	f=!0,j=!0}
}
)();
	var r={
	elements:c.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:c.shivCSS!==!1,supportsUnknownElements:j,shivMethods:c.shivMethods!==!1,type:"default",shivDocument:q,createElement:n,createDocumentFragment:o}
;
	a.html5=r,q(b)}
(this,b),e._version=d,e._prefixes=n,e._domPrefixes=q,e._cssomPrefixes=p,e.testProp=function(a){
	return E([a])}
,e.testAllProps=G,e.testStyles=x,e.prefixed=function(a,b,c){
	return b?G(a,b,c):G(a,"pfx")}
,g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+u.join(" "):""),e}
(this,this.document),function(a,b,c){
	function d(a){
	return"[object Function]"==o.call(a)}
function e(a){
	return"string"==typeof a}
function f(){
}
function g(a){
	return!a||"loaded"==a||"complete"==a||"uninitialized"==a}
function h(){
	var a=p.shift();
	q=1,a?a.t?m(function(){
	("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)}
,0):(a(),h()):q=0}
function i(a,c,d,e,f,i,j){
	function k(b){
	if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){
	"img"!=a&&m(function(){
	t.removeChild(l)}
,50);
	for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}
}
var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={
	t:d,s:c,e:f,a:i,x:j}
;
	1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){
	k.call(this,r)}
,p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}
function j(a,b,c,d,f){
	return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}
function k(){
	var a=B;
	return a.loader={
	load:j,i:0}
,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=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){
	return"[object Array]"==o.call(a)}
,x=[],y={
}
,z={
	timeout:function(a,b){
	return b.length&&(a.timeout=b[0]),a}
}
,A,B;
	B=function(a){
	function b(a){
	var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={
	url:c,origUrl:c,prefixes:a}
,e,f,g;
	for(f=0;
	f<d;
	f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));
	for(f=0;
	f<b;
	f++)c=x[f](c);
	return c}
function g(a,e,f,g,h){
	var i=b(a),j=i.autoCallback;
	i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(y[i.url]?i.noexec=!0:y[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){
	k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),y[i.url]=2}
)))}
function h(a,b){
	function c(a,c){
	if(a){
	if(e(a))c||(j=function(){
	var a=[].slice.call(arguments);
	k.apply(this,a),l()}
),g(a,j,b,0,h);
	else if(Object(a)===a)for(n in m=function(){
	var b=0,c;
	for(c in a)a.hasOwnProperty(c)&&b++;
	return b}
(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){
	var a=[].slice.call(arguments);
	k.apply(this,a),l()}
:j[n]=function(a){
	return function(){
	var b=[].slice.call(arguments);
	a&&a.apply(this,b),l()}
}
(k[n])),g(a[n],j,b,n,h))}
else!c&&l()}
var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;
	c(h?a.yep:a.nope,!!i),i&&c(i)}
var i,j,l=this.yepnope.loader;
	if(e(a))g(a,0,l,0);
	else if(w(a))for(i=0;
	i<a.length;
	i++)j=a[i],e(j)?g(j,0,l,0):w(j)?B(j):Object(j)===j&&h(j,l);
	else Object(a)===a&&h(a,l)}
,B.addPrefix=function(a,b){
	z[a]=b}
,B.addFilter=function(a){
	x.push(a)}
,B.errorTimeout=1e4,null==b.readyState&&b.addEventListener&&(b.readyState="loading",b.addEventListener("DOMContentLoaded",A=function(){
	b.removeEventListener("DOMContentLoaded",A,0),b.readyState="complete"}
,0)),a.yepnope=k(),a.yepnope.executeStack=h,a.yepnope.injectJs=function(a,c,d,e,i,j){
	var k=b.createElement("script"),l,o,e=e||B.errorTimeout;
	k.src=a;
	for(o in d)k.setAttribute(o,d[o]);
	c=j?h:c||f,k.onreadystatechange=k.onload=function(){
	!l&&g(k.readyState)&&(l=1,c(),k.onload=k.onreadystatechange=null)}
,m(function(){
	l||(l=1,c(1))}
,e),i?k.onload():n.parentNode.insertBefore(k,n)}
,a.yepnope.injectCss=function(a,c,d,e,g,i){
	var e=b.createElement("link"),j,c=i?h:c||f;
	e.href=a,e.rel="stylesheet",e.type="text/css";
	for(j in d)e.setAttribute(j,d[j]);
	g||(n.parentNode.insertBefore(e,n),m(c,0))}
}
(this,document),Modernizr.load=function(){
	yepnope.apply(window,[].slice.call(arguments,0))}
;
	// ����ͼ�� �Ѽ����� www.lanrentuku.com

CSS代码(demo.css):

@import url('normalize.css');/* General Demo Style */
body{font-family:'Open Sans Condensed','Arial Narrow',serif;background:#dbe3e2 url(../images/bg.jpg) fixed no-repeat top center;font-weight:400;font-size:15px;color:#333;-webkit-font-smoothing:antialiased;overflow-y:scroll;overflow-x:hidden;}
a{color:#555;text-decoration:none;}
.container{width:100%;position:relative;}
.clr{clear:both;padding:0;height:0;margin:0;}
.main{width:90%;margin:0 auto;position:relative;}
.container > header{margin:10px;padding:20px 10px 10px 10px;position:relative;display:block;text-shadow:1px 1px 1px rgba(0,0,0,0.2);text-align:center;}
.container > header h1{font-size:34px;line-height:34px;margin:0;position:relative;font-weight:300;color:#666;text-shadow:1px 1px 1px rgba(255,255,255,0.9);}
.container > header h2{font-size:14px;font-weight:300;margin:0;padding:15px 0 5px 0;color:#888;font-family:Cambria,Georgia,serif;font-style:italic;text-shadow:1px 1px 1px rgba(255,255,255,0.9);}
/* Header Style */
.codrops-top{line-height:24px;font-size:11px;background:#fff;background:rgba(255,255,255,0.3);text-transform:uppercase;z-index:9999;position:relative;font-family:Cambria,Georgia,serif;box-shadow:1px 0px 2px rgba(0,0,0,0.2);}
.codrops-top a{padding:0px 10px;letter-spacing:1px;color:#333;display:inline-block;}
.codrops-top a:hover{background:rgba(255,255,255,0.6);}
.codrops-top span.right{float:right;}
.codrops-top span.right a{float:left;display:block;}
.support-note span{color:#ac375d;font-size:16px;display:none;font-weight:bold;text-align:center;padding:5px 0;}
.no-cssanimations .support-note span.no-cssanimations,.no-csstransforms .support-note span.no-csstransforms,.no-csstransforms3d .support-note span.no-csstransforms3d,.no-csstransitions .support-note span.no-csstransitions,.no-generatedcontent .support-note span.no-generatedcontent{display:block;}

CSS代码(normalize.css):

/*! normalize.css 2012-03-11T12:53 UTC - http://github.com/necolas/normalize.css */
/* ============================================================================= HTML5 display definitions ========================================================================== */
/* * Corrects block display not defined in IE6/7/8/9 & FF3 */
article,aside,details,figcaption,figure,footer,header,hgroup,nav,section,summary{display:block;}
/* * Corrects inline-block display not defined in IE6/7/8/9 & FF3 */
audio,canvas,video{display:inline-block;*display:inline;*zoom:1;}
/* * Prevents modern browsers from displaying 'audio' without controls * Remove excess height in iOS5 devices */
audio:not([controls]){display:none;height:0;}
/* * Addresses styling for 'hidden' attribute not present in IE7/8/9,FF3,S4 * Known issue:no IE6 support */
[hidden]{display:none;}
/* ============================================================================= Base ========================================================================== */
/* * 1. Corrects text resizing oddly in IE6/7 when body font-size is set using em units * http://clagnut.com/blog/348/#c790 * 2. Prevents iOS text size adjust after orientation change,without disabling user zoom * www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/ */
html{font-size:100%;/* 1 */
 -webkit-text-size-adjust:100%;/* 2 */
 -ms-text-size-adjust:100%;/* 2 */
}
/* * Addresses font-family inconsistency between 'textarea' and other form elements. */
html,button,input,select,textarea{font-family:sans-serif;}
/* * Addresses margins handled incorrectly in IE6/7 */
body{margin:0;}
/* ============================================================================= Links ========================================================================== */
/* * Addresses outline displayed oddly in Chrome */
a:focus{outline:thin dotted;}
/* * Improves readability when focused and also mouse hovered in all browsers * people.opera.com/patrickl/experiments/keyboard/test */
a:hover,a:active{outline:0;}
/* ============================================================================= Typography ========================================================================== */
/* * Addresses font sizes and margins set differently in IE6/7 * Addresses font sizes within 'section' and 'article' in FF4+,Chrome,S5 */
h1{font-size:2em;margin:0.67em 0;}
h2{font-size:1.5em;margin:0.83em 0;}
h3{font-size:1.17em;margin:1em 0;}
h4{font-size:1em;margin:1.33em 0;}
h5{font-size:0.83em;margin:1.67em 0;}
h6{font-size:0.75em;margin:2.33em 0;}
/* * Addresses styling not present in IE7/8/9,S5,Chrome */
abbr[title]{border-bottom:1px dotted;}
/* * Addresses style set to 'bolder' in FF3+,S4/5,Chrome*/
b,strong{font-weight:bold;}
blockquote{margin:1em 40px;}
/* * Addresses styling not present in S5,Chrome */
dfn{font-style:italic;}
/* * Addresses styling not present in IE6/7/8/9 */
mark{background:#ff0;color:#000;}
/* * Addresses margins set differently in IE6/7 */
p,pre{margin:1em 0;}
/* * Corrects font family set oddly in IE6,S4/5,Chrome * en.wikipedia.org/wiki/User:Davidgothberg/Test59 */
pre,code,kbd,samp{font-family:monospace,serif;_font-family:'courier new',monospace;font-size:1em;}
/* * Improves readability of pre-formatted text in all browsers */
pre{white-space:pre;white-space:pre-wrap;word-wrap:break-word;}
/* * 1. Addresses CSS quotes not supported in IE6/7 * 2. Addresses quote property not supported in S4 */
/* 1 */
q{quotes:none;}
/* 2 */
q:before,q:after{content:'';content:none;}
small{font-size:75%;}
/* * Prevents sub and sup affecting line-height in all browsers * gist.github.com/413930 */
sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline;}
sup{top:-0.5em;}
sub{bottom:-0.25em;}
/* ============================================================================= Lists ========================================================================== */
/* * Addresses margins set differently in IE6/7 */
dl,menu,ol,ul{margin:1em 0;}
dd{margin:0 0 0 40px;}
/* * Addresses paddings set differently in IE6/7 */
menu,ol,ul{padding:0 0 0 40px;}
/* * Corrects list images handled incorrectly in IE7 */
nav ul,nav ol{list-style:none;list-style-image:none;}
/* ============================================================================= Embedded content ========================================================================== */
/* * 1. Removes border when inside 'a' element in IE6/7/8/9,FF3 * 2. Improves image quality when scaled in IE7 * code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/ */
img{border:0;/* 1 */
 -ms-interpolation-mode:bicubic;/* 2 */
}
/* * Corrects overflow displayed oddly in IE9 */
svg:not(:root){overflow:hidden;}
/* ============================================================================= Figures ========================================================================== */
/* * Addresses margin not present in IE6/7/8/9,S5,O11 */
figure{margin:0;-webkit-margin-before:0;-webkit-margin-after:0;-webkit-margin-start:0;-webkit-margin-end:0;}
/* ============================================================================= Forms ========================================================================== */
/* * Corrects margin displayed oddly in IE6/7 */
form{margin:0;}
/* * Define consistent border,margin,and padding */
fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em;}
/* * 1. Corrects color not being inherited in IE6/7/8/9 * 2. Corrects text not wrapping in FF3 * 3. Corrects alignment displayed oddly in IE6/7 */
legend{border:0;/* 1 */
 padding:0;white-space:normal;/* 2 */
 *margin-left:-7px;/* 3 */
}
/* * 1. Corrects font size not being inherited in all browsers * 2. Addresses margins set differently in IE6/7,FF3+,S5,Chrome * 3. Improves appearance and consistency in all browsers */
button,input,select,textarea{font-size:100%;/* 1 */
 margin:0;/* 2 */
 vertical-align:baseline;/* 3 */
 *vertical-align:middle;/* 3 */
}
/* * Addresses FF3/4 setting line-height on 'input' using !important in the UA stylesheet */
button,input{line-height:normal;/* 1 */
}
/* * 1. Improves usability and consistency of cursor style between image-type 'input' and others * 2. Corrects inability to style clickable 'input' types in iOS * 3. Removes inner spacing in IE7 without affecting normal text inputs * Known issue:inner spacing remains in IE6 */
button,input[type="button"],input[type="reset"],input[type="submit"]{cursor:pointer;/* 1 */
 -webkit-appearance:button;/* 2 */
 *overflow:visible;/* 3 */
}
/* * Re-set default cursor for disabled elements */
button[disabled],input[disabled]{cursor:default;}
/* * 1. Addresses box sizing set to content-box in IE8/9 * 2. Removes excess padding in IE8/9 * 3. Removes excess padding in IE7 Known issue:excess padding remains in IE6 */
input[type="checkbox"],input[type="radio"]{box-sizing:border-box;/* 1 */
 padding:0;/* 2 */
 *height:13px;/* 3 */
 *width:13px;/* 3 */
}
/* * 1. Addresses appearance set to searchfield in S5,Chrome * 2. Addresses box-sizing set to border-box in S5,Chrome (include -moz to future-proof) */
input[type="search"]{-webkit-appearance:textfield;/* 1 */
 -moz-box-sizing:content-box;-webkit-box-sizing:content-box;/* 2 */
 box-sizing:content-box;}
/* * Removes inner padding and search cancel button in S5,Chrome on OS X */
input[type="search"]::-webkit-search-decoration,input[type="search"]::-webkit-search-cancel-button{-webkit-appearance:none;}
/* * Removes inner padding and border in FF3+ * www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/ */
button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0;}
/* * 1. Removes default vertical scrollbar in IE6/7/8/9 * 2. Improves readability and alignment in all browsers */
textarea{overflow:auto;/* 1 */
 vertical-align:top;/* 2 */
}
/* ============================================================================= Tables ========================================================================== */
/* * Remove most spacing between table cells */
table{border-collapse:collapse;border-spacing:0;}
/* Addition */
/* Apply a natural box layout model to all elements */
/* Read this post by Paul Irish:http://paulirish.com/2012/box-sizing-border-box-ftw/ */
 *{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;}

CSS代码(style.css):

.fs-container{margin:20px auto 50px auto;position:relative;width:40%;padding:0 15%;max-width:700px;min-width:220px;height:500px;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;}
.fs-container:before{content:'';position:absolute;bottom:-40px;background:transparent url(../images/shadow.png) no-repeat center center;height:90px;width:90%;left:5%;opacity:0.8;-webkit-background-size:100% 100%;-moz-background-size:100% 100%;background-size:100% 100%;}
.fs-wrapper{width:100%;height:100%;position:relative;-webkit-perspective:1000px;-moz-perspective:1000px;-o-perspective:1000px;-ms-perspective:1000px;perspective:1000px;}
.fs-slider{width:100%;height:100%;position:absolute;-webkit-transform-style:preserve-3d;-moz-transform-style:preserve-3d;-o-transform-style:preserve-3d;-ms-transform-style:preserve-3d;transform-style:preserve-3d;pointer-events:none;}
.fs-block{margin:0;position:absolute;width:70%;height:100%;left:15%;pointer-events:auto;-webkit-transition:all 1s ease;-moz-transition:all 1s ease;-o-transition:all 1s ease;-ms-transition:all 1s ease;transition:all 1s ease;}
.fs-block:nth-child(1){-webkit-transform-origin:top right;-webkit-transform:translateX(-100%) rotateY(-35deg);-moz-transform-origin:top right;-moz-transform:translateX(-100%) rotateY(-35deg);-o-transform-origin:top right;-o-transform:translateX(-100%) rotateY(-35deg);-ms-transform-origin:top right;-ms-transform:translate(-100%);transform-origin:top right;transform:translateX(-100%) rotateY(-35deg);}
.no-touch .fs-block:nth-child(1):hover{-webkit-transform:translateX(-100%) rotateY(-30deg);-o-transform:translateX(-100%) rotateY(-30deg);transform:translateX(-100%) rotateY(-30deg);}
.fs-block:nth-child(2){z-index:100;}
.fs-block:nth-child(3){-webkit-transform-origin:top left;-webkit-transform:translateX(100%) rotateY(35deg);-moz-transform-origin:top left;-moz-transform:translateX(100%) rotateY(35deg);-o-transform-origin:top left;-o-transform:translateX(100%) rotateY(35deg);-ms-transform-origin:top left;-ms-transform:translate(100%);transform-origin:top left;transform:translateX(100%) rotateY(35deg);}
.no-touch .fs-block:nth-child(3):hover{-webkit-transform:translateX(100%) rotateY(30deg);-o-transform:translateX(100%) rotateY(30deg);transform:translateX(100%) rotateY(30deg);}
.fs-block:after{content:'';position:absolute;width:100%;height:100%;z-index:1000;pointer-events:none;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;border-left:1px solid rgba(119,119,119,1);border-right:1px solid rgba(119,119,119,1);left:-1px;}
/* Borders are only needed if we have the 3d look */
.no-csstransforms3d .fs-block:after{border:none;}
.fs-block:nth-child(1):after{background:-moz-linear-gradient(left,rgba(0,0,0,0.65) 0%,rgba(0,0,0,0.2) 100%);background:-webkit-gradient(linear,left top,right top,color-stop(0%,rgba(0,0,0,0.65)),color-stop(100%,rgba(0,0,0,0.2)));background:-webkit-linear-gradient(left,rgba(0,0,0,0.65) 0%,rgba(0,0,0,0.2) 100%);background:-o-linear-gradient(left,rgba(0,0,0,0.65) 0%,rgba(0,0,0,0.2) 100%);background:-ms-linear-gradient(left,rgba(0,0,0,0.65) 0%,rgba(0,0,0,0.2) 100%);background:linear-gradient(to right,rgba(0,0,0,0.65) 0%,rgba(0,0,0,0.2) 100%);}
.fs-block:nth-child(2):after{opacity:0.8;background:-moz-linear-gradient(left,rgba(0,0,0,0.5) 0%,rgba(0,0,0,0.12) 21%,rgba(0,0,0,0.03) 31%,rgba(0,0,0,0) 50%,rgba(0,0,0,0.03) 70%,rgba(0,0,0,0.12) 81%,rgba(0,0,0,0.5) 100%);background:-webkit-gradient(linear,left top,right top,color-stop(0%,rgba(0,0,0,0.5)),color-stop(21%,rgba(0,0,0,0.12)),color-stop(31%,rgba(0,0,0,0.03)),color-stop(50%,rgba(0,0,0,0)),color-stop(70%,rgba(0,0,0,0.03)),color-stop(81%,rgba(0,0,0,0.12)),color-stop(100%,rgba(0,0,0,0.5)));background:-webkit-linear-gradient(left,rgba(0,0,0,0.5) 0%,rgba(0,0,0,0.12) 21%,rgba(0,0,0,0.03) 31%,rgba(0,0,0,0) 50%,rgba(0,0,0,0.03) 70%,rgba(0,0,0,0.12) 81%,rgba(0,0,0,0.5) 100%);background:-o-linear-gradient(left,rgba(0,0,0,0.5) 0%,rgba(0,0,0,0.12) 21%,rgba(0,0,0,0.03) 31%,rgba(0,0,0,0) 50%,rgba(0,0,0,0.03) 70%,rgba(0,0,0,0.12) 81%,rgba(0,0,0,0.5) 100%);background:-ms-linear-gradient(left,rgba(0,0,0,0.5) 0%,rgba(0,0,0,0.12) 21%,rgba(0,0,0,0.03) 31%,rgba(0,0,0,0) 50%,rgba(0,0,0,0.03) 70%,rgba(0,0,0,0.12) 81%,rgba(0,0,0,0.5) 100%);background:linear-gradient(to right,rgba(0,0,0,0.5) 0%,rgba(0,0,0,0.12) 21%,rgba(0,0,0,0.03) 31%,rgba(0,0,0,0) 50%,rgba(0,0,0,0.03) 70%,rgba(0,0,0,0.12) 81%,rgba(0,0,0,0.5) 100%);}
.fs-block:nth-child(3):after{background:-moz-linear-gradient(left,rgba(0,0,0,0.2) 0%,rgba(0,0,0,0.65) 100%);background:-webkit-gradient(linear,left top,right top,color-stop(0%,rgba(0,0,0,0.2)),color-stop(100%,rgba(0,0,0,0.65)));background:-webkit-linear-gradient(left,rgba(0,0,0,0.2) 0%,rgba(0,0,0,0.65) 100%);background:-o-linear-gradient(left,rgba(0,0,0,0.2) 0%,rgba(0,0,0,0.65) 100%);background:-ms-linear-gradient(left,rgba(0,0,0,0.2) 0%,rgba(0,0,0,0.65) 100%);background:linear-gradient(to right,rgba(0,0,0,0.2) 0%,rgba(0,0,0,0.65) 100%);}
.fs-block figure{width:100%;height:100%;margin:0;position:absolute;top:0;left:0;overflow:hidden;z-index:1;}
.fs-block figure:first-child{z-index:10;}
.fs-block figure img{position:absolute;top:0;left:0;display:block;}
.fs-block figcaption{padding:0 20px;margin:0;position:absolute;width:100%;top:25%;background:rgba(0,0,0,0.4);overflow:hidden;height:0%;opacity:0;text-align:center;-webkit-transition:all 700ms cubic-bezier(0,0,.15,1);-moz-transition:all 700ms cubic-bezier(0,0,.15,1);-o-transition:all 700ms cubic-bezier(0,0,.15,1);-ms-transition:all 700ms cubic-bezier(0,0,.15,1);transition:all 700ms cubic-bezier(0,0,.15,1);}
.fs-block figcaption.fs-transition{height:35%;opacity:1;}
.fs-block figcaption h3{font-size:40px;line-height:40px;margin:0;padding:20px 0;color:#fff;text-shadow:1px 1px 1px rgba(0,0,0,0.3);font-family:'Prata',serif;font-weight:normal;}
.fs-block figcaption p{color:#fff;padding:20px 0;margin:0;text-shadow:1px 1px 1px rgba(0,0,0,0.2);border-top:1px solid rgba(255,255,255,0.2);box-shadow:0 -1px 0 rgba(0,0,0,0.3);}
.fs-navigation{position:absolute;z-index:2000;bottom:10px;right:15%;margin-right:15px;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}
.fs-navigation span{float:left;width:26px;height:26px;border-radius:4px;text-indent:-90000px;cursor:pointer;opacity:0.6;margin-right:3px;background:rgba(0,0,0,0.4) url(../images/arrow.png) no-repeat 50% 50%;-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;pointer-events:auto;}
.fs-navigation span:nth-child(2){-webkit-transform:rotate(180deg);-moz-transform:rotate(180deg);-o-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}
.fs-navigation span:hover{opacity:1;}
/* Transitions */
.fs-block:nth-child(1) figure{-webkit-transition:width 900ms cubic-bezier(0,0,.15,1) 600ms;-moz-transition:width 900ms cubic-bezier(0,0,.15,1) 600ms;-o-transition:width 900ms cubic-bezier(0,0,.15,1) 600ms;-ms-transition:width 900ms cubic-bezier(0,0,.15,1) 600ms;transition:width 900ms cubic-bezier(0,0,.15,1) 600ms;}
.fs-block:nth-child(2) figure{-webkit-transition:width 900ms cubic-bezier(0,0,.15,1) 300ms;-moz-transition:width 900ms cubic-bezier(0,0,.15,1) 300ms;-o-transition:width 900ms cubic-bezier(0,0,.15,1) 300ms;-ms-transition:width 900ms cubic-bezier(0,0,.15,1) 300ms;transition:width 900ms cubic-bezier(0,0,.15,1) 300ms;}
.fs-block:nth-child(3) figure{-webkit-transition:width 900ms cubic-bezier(0,0,.15,1);-moz-transition:width 900ms cubic-bezier(0,0,.15,1);-o-transition:width 900ms cubic-bezier(0,0,.15,1);-ms-transition:width 900ms cubic-bezier(0,0,.15,1);transition:width 900ms cubic-bezier(0,0,.15,1);}
/* Media Queries */
@media screen and (max-width:1024px){.fs-block figcaption h3{font-size:26px;}
}
@media screen and (max-width:768px){.fs-block figcaption{padding:0 10px;}
.fs-block figcaption h3{font-size:16px;padding:10px 0;}
.fs-block figcaption p{font-size:13px;}
}
附件:下载该文件资源,减少时间成本(增值服务)
留言
该资源可下载
File Source
.rar
393.38 KB
Html 焦点滚动特效4
最新结算
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
打赏文章