jQuery 360安全路由全屏滑动切换滚动特效代码

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

以下是 jQuery 360安全路由全屏滑动切换滚动特效代码 的示例演示效果:

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

部分效果截图:

jQuery 360安全路由全屏滑动切换滚动特效代码

HTML代码(index.html):

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<title>jQuery 360安全路由全屏滑动切换</title>
<link rel="stylesheet" href="css/jquery.fullPage.css">
<style>
* { margin: 0; padding: 0;}
body { font: 14px/1.6 "Microsoft Yahei";}
.inner { position: relative; width: 1100px; margin: 0 auto;}
.dowebok-hd { position: fixed; z-index: 1000; width: 100%; height: 64px; background: url(images/hd_bg.jpg) 0 0 repeat-x;}
.dowebok-hd h1 { float: left; width: 156px; height: 26px; margin-top: 20px;}
.dowebok-hd h1 a { display: block; width: 156px; height: 26px; text-indent: -9999px; background-image: url(images/logo.png);}
.dowebok-hd .nav { float: right; list-style-type: none;}
.dowebok-hd .nav li { float: left; margin-left: 5px;}
.dowebok-hd .nav a { float: left; padding: 0 10px; line-height: 64px; color: #fff; text-decoration: none;}
.dowebok-hd .nav a:hover { height: 62px; border-bottom: 2px solid #4cb803;}

#dowebok { margin-top: 64px;}
#dowebok .section { background: url(images/section_bg.jpg) 0 0 repeat-x;}
#dowebok .inner { width: 960px; height: 100%;}
#dowebok .section1 { background-color: #212121; background-image: none;}
#dowebok .section1 .fp-tableCell { vertical-align: top;}
#dowebok .section1 .gojd { display: block; height: 100%; text-indent: -9999px; overflow: hidden; background: url(images/slider2.jpg) 50% 0 no-repeat;}
#dowebok .section2 .img1 { position: absolute; left: 240px; top: 8%;}
#dowebok .section2 .img2 { position: absolute; left: -7px; bottom: 64px;}

#dowebok .section3 h2 { width: 577px; height: 90px; margin: 0 auto; text-indent: -9999px; background-image: url(images/slider3_title.png);}
#dowebok .section3 img { display: block; margin: 2% auto;}
#dowebok .section3 .txt { line-height: 30px; text-align: center;}
#dowebok .section3 .fp-controlArrow { width: 100px; height: 100px; margin-top: -50px; border: 0 none;}
#dowebok .section3 .fp-prev { left: 150px; background: url(images/left_control.png) 50% no-repeat;}
#dowebok .section3 .fp-next { right: 150px; background: url(images/right_control.png) 50% no-repeat;}

#dowebok .section4 .img1 { position: absolute; left: -160px; top: 5%;}
#dowebok .section4 .txt { position: absolute; right: 0; top: 12%; width: 650px;}
#dowebok .section4 h2 { height: 90px; margin-bottom: 10px; background: url(images/slider4_title.png) 0 0 no-repeat;}
#dowebok .section4 p { padding: 20px 0; line-height: 30px; font-size: 16px;}
#dowebok .section4 .icon { height: 111px; background: url(images/slider4_icon.png) 0 0 no-repeat;}

#dowebok .section5 .img1 { position: absolute; right: -460px; top: 180px;}
#dowebok .section5 .txt { position: absolute; left: 0; top: 8%; width: 680px;}
#dowebok .section5 h2 { height: 90px; margin-bottom: 10px; background: url(images/slider5_title.png) 0 0 no-repeat;}
#dowebok .section5 p { width: 550px; padding: 20px 0; line-height: 30px; font-size: 16px;}
#dowebok .section5 .icon { margin-right: 15px;}

#dowebok .ft { position: absolute; left: 0; bottom: 64px; width: 960px; background-color: rgba(255, 255, 255, 0.7);}
#dowebok .ft-link { padding: 10px 0; overflow: hidden; zoom: 1;}
#dowebok .more-links { float: left; padding: 0 60px; border-right: 1px solid #e7e8e8;}
#dowebok .ft-link .first { padding-left: 100px;}
#dowebok .more-links h3 { font-size: 14px; color: #7d7d7d;}
#dowebok .more-links ul { list-style-type: none;}
#dowebok .more-links a { color: #676767; text-decoration: none;}
#dowebok .service { float: right; padding-right: 100px; background: url(images/phone.png) 10px 10px no-repeat;}
#dowebok .service ul { padding: 0 15px 0 56px; background-color: rgba(255, 255, 255, 0.5); list-style-type: none;}
#dowebok .service .phone { padding: 7px 0 0 10px; border-left: 1px solid #fff; font-size: 22px;}
#dowebok .service .time { border-left: 1px solid #fff; font-size: 16px; color: #adb0b4;}
#dowebok .copy { height: 50px;}
#dowebok .copy p { width: 100%; padding: 0; line-height: 18px; font-size: 12px; text-align: center; color: #a1a1a1;}

#fp-nav span, .fp-slidesNav span { border: 1px solid #999;}
#fp-nav li .active span, .fp-slidesNav.active span { background-color: #4ec200;}
</style>

</head>

<body>
<div class="dowebok-hd">
	<div class="inner">
		<h1><a href="">360安全路由</a></h1>
		<ul class="nav">
			<li><a href="#">性能</a></li>
			<li><a href="#">智能</a></li>
			<li><a href="#">安全</a></li>
			<li><a href="#">技术规格</a></li>
			<li><a href="#">常见问题</a></li>
			<li><a href="#">固件更新</a></li>
			<li><a href="#">讨论</a></li>
			<li><a href="#">下载手机客户端</a></li>
		</ul>
	</div>
</div>
<div id="dowebok">
	<div class="section section1">
		<a class="gojd" href="###">手机玩转路由器——360安全路由器,更安全更智能,9月1日京东特卖开启,GO!</a>
	</div>
	<div class="section section2">
		<div class="inner">
			<img class="img1" src="images/slider2_title.png" alt="">
			<img class="img2" src="images/slider2_phone.png" alt="">
		</div>
	</div>
	<div class="section section3">
		<div class="slide">
			<h2>超快感——业界良心打造信号稳定、速度快3倍、可穿墙的路由器</h2>
			<img src="images/slider_item0.png" alt="">
			<p class="txt">
				Wi-Fi进入千兆时代,5G双频路由才是新潮流。<br>
				最新的802.11ac协议,Wi-Fi速度快3倍,传输速率高达1167Mbps。<br>领先的MIMO
				2X2智能天线技术,信号更好、穿墙更轻松。同时支持2.4GHz和5GHz双频传输数据,可以实现<br>更快速度、传输更多数据,无论打游戏还是看视频您都能获得最佳信号。
			</p>
		</div>
		<div class="slide">
			<h2>超快感——业界良心打造信号稳定、速度快3倍、可穿墙的路由器</h2>
			<img src="images/slider_item1.png" alt="">
			<p class="txt">
				Wi-Fi进入千兆时代,5G双频路由才是新潮流。<br>
				最新的802.11ac协议,Wi-Fi速度快3倍,传输速率高达1167Mbps。<br>领先的MIMO
				2X2智能天线技术,信号更好、穿墙更轻松。同时支持2.4GHz和5GHz双频传输数据,可以实现<br>更快速度、传输更多数据,无论打游戏还是看视频您都能获得最佳信号。
			</p>
		</div>
		<div class="slide">
			<h2>超快感——业界良心打造信号稳定、速度快3倍、可穿墙的路由器</h2>
			<img src="images/slider_item2.png" alt="">
			<p class="txt">
				Wi-Fi进入千兆时代,5G双频路由才是新潮流。<br>
				最新的802.11ac协议,Wi-Fi速度快3倍,传输速率高达1167Mbps。<br>领先的MIMO
				2X2智能天线技术,信号更好、穿墙更轻松。同时支持2.4GHz和5GHz双频传输数据,可以实现<br>更快速度、传输更多数据,无论打游戏还是看视频您都能获得最佳信号。
			</p>
		</div>
		<div class="slide">
			<h2>超快感——业界良心打造信号稳定、速度快3倍、可穿墙的路由器</h2>
			<img src="images/slider_item3.png" alt="">
			<p class="txt">
				Wi-Fi进入千兆时代,5G双频路由才是新潮流。<br>
				最新的802.11ac协议,Wi-Fi速度快3倍,传输速率高达1167Mbps。<br>领先的MIMO
				2X2智能天线技术,信号更好、穿墙更轻松。同时支持2.4GHz和5GHz双频传输数据,可以实现<br>更快速度、传输更多数据,无论打游戏还是看视频您都能获得最佳信号。
			</p>
		</div>
		<div class="slide">
			<h2>超快感——业界良心打造信号稳定、速度快3倍、可穿墙的路由器</h2>
			<img src="images/slider_item4.png" alt="">
			<p class="txt">
				Wi-Fi进入千兆时代,5G双频路由才是新潮流。<br>
				最新的802.11ac协议,Wi-Fi速度快3倍,传输速率高达1167Mbps。<br>领先的MIMO
				2X2智能天线技术,信号更好、穿墙更轻松。同时支持2.4GHz和5GHz双频传输数据,可以实现<br>更快速度、传输更多数据,无论打游戏还是看视频您都能获得最佳信号。
			</p>
		</div>
	</div>
	<div class="section section4">
		<div class="inner">
			<img class="img1" src="images/slider4_bg.jpg" alt="">
			<div class="txt">
				<h2></h2>
				<p>颠覆传统路由的繁琐设置,用手机就能搞定一切!您可以通过远程操控,随时为父母解决网络问题。信号强度可调,辐射可控,为宝宝和孕妇等家人提供健康的上网环境。爱捣鼓的Geek,想要玩转路由,您有太多新技能需get√,万能中继、自定义host、无限扩展的插件中心……</p>
				<div class="icon"></div>
				<p>? 功率可调节辐射可控 ? 设备限速 ? 一键优化信号 ? 访客免密码上网 ? 秒踢蹭网者</p>
			</div>
		</div>
	</div>
	<div class="section section5">
		<div class="inner">
			<img class="img1" src="images/slider5_bg.gif" alt="">
			<div class="txt">
				<h2></h2>
				<img class="icon" src="images/slider5_icon1.png" alt="">
				<img class="icon" src="images/slider5_icon2.png" alt="">
				<img class="icon" src="images/slider5_icon3.png" alt="">
			</div>
			<div class="ft">
				<div class="ft-link">
					<div class="more-links first">
						<h3>帮助</h3>
						<ul>
							<li><a href="">反馈建议</a></li>
						</ul>
					</div>
					<div class="more-links">
						<h3>关注我们</h3>
						<ul>
							<li><a href="">官方论坛</a></li>
							<li><a href="">官方微博</a></li>
							<li><a href="">官方微信</a></li>
						</ul>
					</div>
					<div class="more-links">
						<h3>相关网站</h3>
						<ul>
							<li><a href="">360硬件专区</a></li>
							<li><a href="">360儿童卫士</a></li>
							<li><a href="">360防丢卫士</a></li>
						</ul>
					</div>
					<div class="service">
						<ul>
							<li class="phone">400-6822-360</li>
							<li class="time">周一至周日9:00-18:00</li>
						</ul>
					</div>
				</div>
		
			</div>
		</div>
	</div>
</div>

<script src="js/jquery-1.8.3.min.js"></script>
<script src="js/jquery.easing.min.js"></script>
<script src="js/jquery.fullPage.min.js"></script>
<script>
$(function(){
	$('#dowebok').fullpage({
		navigation: true
	});
});
</script>

</body>
</html>







JS代码(jquery.fullPage.min.js):

/** * fullPage 2.2.2 * https://github.com/alvarotrigo/fullPage.js * MIT licensed * * Copyright (C) 2013 alvarotrigo.com - A project by Alvaro Trigo */
(function(a){
	a.fn.fullpage=function(c){
	function N(){
	a(".fp-section").each(function(){
	var b=a(this).find(".fp-slide");
	b.length?b.each(function(){
	A(a(this))}
):A(a(this))}
);
	a.isFunction(c.afterRender)&&c.afterRender.call(this)}
function O(){
	if(!c.autoScrolling){
	var b=a(window).scrollTop(),d=a(".fp-section").map(function(){
	if(a(this).offset().top<b+100)return a(this)}
),d=d[d.length-1];
	if(!d.hasClass("active")){
	var e=a(".fp-section.active").index(".fp-section")+1;
	G=!0;
	var f=H(d);
	d.addClass("active").siblings().removeClass("active");
	var g=d.data("anchor");
	a.isFunction(c.onLeave)&&c.onLeave.call(this,e,d.index(".fp-section")+1,f);
	a.isFunction(c.afterLoad)&&c.afterLoad.call(this,g,d.index(".fp-section")+1);
	I(g);
	J(g,0);
	c.anchors.length&&!t&&(w=g,location.hash=g);
	clearTimeout(P);
	P=setTimeout(function(){
	G=!1}
,100)}
}
}
function ea(b){
	var d=b.originalEvent;
	c.autoScrolling&&b.preventDefault();
	if(!Q(b.target)&&(b=a(".fp-section.active"),!t&&!q))if(d=R(d),y=d.y,B=d.x,b.find(".fp-slides").length&&Math.abs(C-B)>Math.abs(z-y))Math.abs(C-B)>a(window).width()/100*c.touchSensitivity&&(C>B?a.fn.fullpage.moveSlideRight():a.fn.fullpage.moveSlideLeft());
	else if(c.autoScrolling&&(d=b.find(".fp-slides").length?b.find(".fp-slide.active").find(".fp-scrollable"):b.find(".fp-scrollable"),Math.abs(z-y)>a(window).height()/100*c.touchSensitivity))if(z>y)if(0<d.length)if(D("bottom",d))a.fn.fullpage.moveSectionDown();
	else return!0;
	else a.fn.fullpage.moveSectionDown();
	else if(y>z)if(0<d.length)if(D("top",d))a.fn.fullpage.moveSectionUp();
	else return!0;
	else a.fn.fullpage.moveSectionUp()}
function Q(b,d){
	d=d||0;
	var e=a(b).parent();
	return d<c.normalScrollElementTouchThreshold&&e.is(c.normalScrollElements)?!0:d==c.normalScrollElementTouchThreshold?!1:Q(e,++d)}
function fa(b){
	b=R(b.originalEvent);
	z=b.y;
	C=b.x}
function p(b){
	if(c.autoScrolling){
	b=window.event||b;
	b=Math.max(-1,Math.min(1,b.wheelDelta||-b.deltaY||-b.detail));
	var d;
	d=a(".fp-section.active");
	if(!t)if(d=d.find(".fp-slides").length?d.find(".fp-slide.active").find(".fp-scrollable"):d.find(".fp-scrollable"),0>b)if(0<d.length)if(D("bottom",d))a.fn.fullpage.moveSectionDown();
	else return!0;
	else a.fn.fullpage.moveSectionDown();
	else if(0<d.length)if(D("top",d))a.fn.fullpage.moveSectionUp();
	else return!0;
	else a.fn.fullpage.moveSectionUp();
	return!1}
}
function S(b){
	var d=a(".fp-section.active").find(".fp-slides");
	if(d.length&&!q){
	var e=d.find(".fp-slide.active"),f=null,f="prev"===b?e.prev(".fp-slide"):e.next(".fp-slide");
	if(!f.length){
	if(!c.loopHorizontal)return;
	f="prev"===b?e.siblings(":last"):e.siblings(":first")}
q=!0;
	k(d,f)}
}
function l(b,d,e){
	var f={
}
,g=b.position();
	if("undefined"!==typeof g){
	var g=g.top,m=H(b),u=b.data("anchor"),r=b.index(".fp-section"),h=b.find(".fp-slide.active"),s=a(".fp-section.active"),q=s.index(".fp-section")+1,F=E;
	if(h.length)var n=h.data("anchor"),p=h.index();
	if(c.autoScrolling&&c.continuousVertical&&"undefined"!==typeof e&&(!e&&"up"==m||e&&"down"==m)){
	e?a(".fp-section.active").before(s.nextAll(".fp-section")):a(".fp-section.active").after(s.prevAll(".fp-section").get().reverse());
	v(a(".fp-section.active").position().top);
	var k=s,g=b.position(),g=g.top,m=H(b)}
b.addClass("active").siblings().removeClass("active");
	t=!0;
	"undefined"!==typeof u&&T(p,n,u);
	c.autoScrolling?(f.top=-g,b=".fullpage-wrapper"):(f.scrollTop=g,b="html,body");
	var l=function(){
	k&&k.length&&(e?a(".fp-section:first").before(k):a(".fp-section:last").after(k),v(a(".fp-section.active").position().top))}
;
	c.css3&&c.autoScrolling?(a.isFunction(c.onLeave)&&!F&&c.onLeave.call(this,q,r+1,m),U("translate3d(0px,-"+g+"px,0px)",!0),setTimeout(function(){
	l();
	a.isFunction(c.afterLoad)&&!F&&c.afterLoad.call(this,u,r+1);
	setTimeout(function(){
	t=!1;
	a.isFunction(d)&&d.call(this)}
,600)}
,c.scrollingSpeed)):(a.isFunction(c.onLeave)&&!F&&c.onLeave.call(this,q,r+1,m),a(b).animate(f,c.scrollingSpeed,c.easing,function(){
	l();
	a.isFunction(c.afterLoad)&&!F&&c.afterLoad.call(this,u,r+1);
	setTimeout(function(){
	t=!1;
	a.isFunction(d)&&d.call(this)}
,600)}
));
	w=u;
	c.autoScrolling&&(I(u),J(u,r))}
}
function V(){
	if(!G){
	var b=window.location.hash.replace("#","").split("/"),a=b[0],b=b[1];
	if(a.length){
	var c="undefined"===typeof w,f="undefined"===typeof w&&"undefined"===typeof b&&!q;
	(a&&a!==w&&!c||f||!q&&K!=b)&&L(a,b)}
}
}
function k(b,d){
	var e=d.position(),f=b.find(".fp-slidesContainer").parent(),g=d.index(),m=b.closest(".fp-section"),h=m.index(".fp-section"),r=m.data("anchor"),k=m.find(".fp-slidesNav"),s=d.data("anchor"),l=E;
	if(c.onSlideLeave){
	var n=m.find(".fp-slide.active").index(),p;
	p=n==g?"none":n>g?"left":"right";
	l||a.isFunction(c.onSlideLeave)&&c.onSlideLeave.call(this,r,h+1,n,p)}
d.addClass("active").siblings().removeClass("active");
	"undefined"===typeof s&&(s=g);
	c.loopHorizontal||(m.find(".fp-controlArrow.fp-prev").toggle(0!=g),m.find(".fp-controlArrow.fp-next").toggle(!d.is(":last-child")));
	m.hasClass("active")&&T(g,s,r);
	c.css3?(e="translate3d(-"+e.left+"px,0px,0px)",b.find(".fp-slidesContainer").toggleClass("fp-easing",0<c.scrollingSpeed).css(W(e)),setTimeout(function(){
	l||a.isFunction(c.afterSlideLoad)&&c.afterSlideLoad.call(this,r,h+1,s,g);
	q=!1}
,c.scrollingSpeed,c.easing)):f.animate({
	scrollLeft:e.left}
,c.scrollingSpeed,c.easing,function(){
	l||a.isFunction(c.afterSlideLoad)&&c.afterSlideLoad.call(this,r,h+1,s,g);
	q=!1}
);
	k.find(".active").removeClass("active");
	k.find("li").eq(g).find("a").addClass("active")}
function ga(b,d){
	var c=825,f=b;
	825>b||900>d?(900>d&&(f=d,c=900),c=(100*f/c).toFixed(2),a("body").css("font-size",c+"%")):a("body").css("font-size","100%")}
function J(b,d){
	c.navigation&&(a("#fp-nav").find(".active").removeClass("active"),b?a("#fp-nav").find('a[href="#'+b+'"]').addClass("active"):a("#fp-nav").find("li").eq(d).find("a").addClass("active"))}
function I(b){
	c.menu&&(a(c.menu).find(".active").removeClass("active"),a(c.menu).find('[data-menuanchor="'+b+'"]').addClass("active"))}
function D(b,a){
	if("top"===b)return!a.scrollTop();
	if("bottom"===b)return a.scrollTop()+1+a.innerHeight()>=a[0].scrollHeight}
function H(b){
	var c=a(".fp-section.active").index(".fp-section");
	b=b.index(".fp-section");
	return c>b?"up":"down"}
function A(b){
	b.css("overflow","hidden");
	var a=b.closest(".fp-section"),e=b.find(".fp-scrollable");
	if(e.length)var f=e.get(0).scrollHeight;
	else f=b.get(0).scrollHeight,c.verticalCentered&&(f=b.find(".fp-tableCell").get(0).scrollHeight);
	a=n-parseInt(a.css("padding-bottom"))-parseInt(a.css("padding-top"));
	f>a?e.length?e.css("height",a+"px").parent().css("height",a+"px"):(c.verticalCentered?b.find(".fp-tableCell").wrapInner('<div class="fp-scrollable" />'):b.wrapInner('<div class="fp-scrollable" />'),b.find(".fp-scrollable").slimScroll({
	allowPageScroll:!0,height:a+"px",size:"10px",alwaysVisible:!0}
)):X(b);
	b.css("overflow","")}
function X(a){
	a.find(".fp-scrollable").children().first().unwrap().unwrap();
	a.find(".slimScrollBar").remove();
	a.find(".slimScrollRail").remove()}
function Y(a){
	a.addClass("fp-table").wrapInner('<div class="fp-tableCell" style="height:'+Z(a)+'px;
	" />')}
function Z(a){
	var d=n;
	if(c.paddingTop||c.paddingBottom)d=a,d.hasClass("fp-section")||(d=a.closest(".fp-section")),a=parseInt(d.css("padding-top"))+parseInt(d.css("padding-bottom")),d=n-a;
	return d}
function U(a,c){
	h.toggleClass("fp-easing",c);
	h.css(W(a))}
function L(b,c){
	"undefined"===typeof c&&(c=0);
	var e=isNaN(b)?a('[data-anchor="'+b+'"]'):a(".fp-section").eq(b-1);
	b===w||e.hasClass("active")?$(e,c):l(e,function(){
	$(e,c)}
)}
function $(a,c){
	if("undefined"!=typeof c){
	var e=a.find(".fp-slides"),f=e.find('[data-anchor="'+c+'"]');
	f.length||(f=e.find(".fp-slide").eq(c));
	f.length&&k(e,f)}
}
function ha(a,d){
	a.append('<div class="fp-slidesNav"><ul></ul></div>');
	var e=a.find(".fp-slidesNav");
	e.addClass(c.slidesNavPosition);
	for(var f=0;
	f<d;
	f++)e.find("ul").append('<li><a href="#"><span></span></a></li>');
	e.css("margin-left","-"+e.width()/2+"px");
	e.find("li").first().find("a").addClass("active")}
function T(a,d,e){
	var f="";
	c.anchors.length&&(a?("undefined"!==typeof e&&(f=e),"undefined"===typeof d&&(d=a),K=d,location.hash=f+"/"+d):("undefined"!==typeof a&&(K=d),location.hash=e))}
function ia(){
	var a=document.createElement("p"),c,e={
	webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"}
;
	document.body.insertBefore(a,null);
	for(var f in e)void 0!==a.style[f]&&(a.style[f]="translate3d(1px,1px,1px)",c=window.getComputedStyle(a).getPropertyValue(e[f]));
	document.body.removeChild(a);
	return void 0!==c&&0<c.length&&"none"!==c}
function aa(){
	return window.PointerEvent?{
	down:"pointerdown",move:"pointermove"}
:{
	down:"MSPointerDown",move:"MSPointerMove"}
}
function R(a){
	var c=[];
	window.navigator.msPointerEnabled?(c.y=a.pageY,c.x=a.pageX):(c.y=a.touches[0].pageY,c.x=a.touches[0].pageX);
	return c}
function ba(b){
	var d=c.scrollingSpeed;
	a.fn.fullpage.setScrollingSpeed(0);
	k(b.closest(".fp-slides"),b);
	a.fn.fullpage.setScrollingSpeed(d)}
function v(a){
	c.css3?U("translate3d(0px,-"+a+"px,0px)",!1):h.css("top",-a)}
function W(a){
	return{
	"-webkit-transform":a,"-moz-transform":a,"-ms-transform":a,transform:a}
}
function ja(){
	v(0);
	a("#fp-nav,.fp-slidesNav,.fp-controlArrow").remove();
	a(".fp-section").css({
	height:"","background-color":"",padding:""}
);
	a(".fp-slide").css({
	width:""}
);
	h.css({
	height:"",position:"","-ms-touch-action":""}
);
	a(".fp-section,.fp-slide").each(function(){
	X(a(this));
	a(this).removeClass("fp-table active")}
);
	h.find(".fp-easing").removeClass("fp-easing");
	h.find(".fp-tableCell,.fp-slidesContainer,.fp-slides").each(function(){
	a(this).replaceWith(this.childNodes)}
);
	a("html,body").scrollTop(0);
	h.addClass("fullpage-used")}
c=a.extend({
	verticalCentered:!0,resize:!0,sectionsColor:[],anchors:[],scrollingSpeed:700,easing:"easeInQuart",menu:!1,navigation:!1,navigationPosition:"right",navigationColor:"#000",navigationTooltips:[],slidesNavigation:!1,slidesNavPosition:"bottom",controlArrowColor:"#fff",loopBottom:!1,loopTop:!1,loopHorizontal:!0,autoScrolling:!0,scrollOverflow:!1,css3:!1,paddingTop:0,paddingBottom:0,fixedElements:null,normalScrollElements:null,keyboardScrolling:!0,touchSensitivity:5,continuousVertical:!1,animateAnchor:!0,normalScrollElementTouchThreshold:5,sectionSelector:".section",slideSelector:".slide",afterLoad:null,onLeave:null,afterRender:null,afterResize:null,afterSlideLoad:null,onSlideLeave:null}
,c);
	c.continuousVertical&&(c.loopTop||c.loopBottom)&&(c.continuousVertical=!1,console&&console.log&&console.log("Option loopTop/loopBottom is mutually exclusive with continuousVertical;
	continuousVertical disabled"));
	a.fn.fullpage.setAutoScrolling=function(b){
	c.autoScrolling=b;
	b=a(".fp-section.active");
	c.autoScrolling?(a("html,body").css({
	overflow:"hidden",height:"100%"}
),b.length&&v(b.position().top)):(a("html,body").css({
	overflow:"initial",height:"initial"}
),v(0),a("html,body").scrollTop(b.position().top))}
;
	a.fn.fullpage.setScrollingSpeed=function(a){
	c.scrollingSpeed=a}
;
	a.fn.fullpage.setMouseWheelScrolling=function(a){
	a?document.addEventListener?(document.addEventListener("mousewheel",p,!1),document.addEventListener("wheel",p,!1)):document.attachEvent("onmousewheel",p):document.addEventListener?(document.removeEventListener("mousewheel",p,!1),document.removeEventListener("wheel",p,!1)):document.detachEvent("onmousewheel",p)}
;
	a.fn.fullpage.setAllowScrolling=function(b){
	if(b){
	if(a.fn.fullpage.setMouseWheelScrolling(!0),M||ca)MSPointer=aa(),a(document).off("touchstart "+MSPointer.down).on("touchstart "+MSPointer.down,fa),a(document).off("touchmove "+MSPointer.move).on("touchmove "+MSPointer.move,ea)}
else if(a.fn.fullpage.setMouseWheelScrolling(!1),M||ca)MSPointer=aa(),a(document).off("touchstart "+MSPointer.down),a(document).off("touchmove "+MSPointer.move)}
;
	a.fn.fullpage.setKeyboardScrolling=function(a){
	c.keyboardScrolling=a}
;
	var q=!1,M=navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry|BB10|Windows Phone|Tizen|Bada)/),ca="ontouchstart"in window||0<navigator.msMaxTouchPoints,h=a(this),n=a(window).height(),t=!1,E=!1,w,K;
	a.fn.fullpage.setAllowScrolling(!0);
	c.css3&&(c.css3=ia());
	a(this).length?(h.css({
	height:"100%",position:"relative","-ms-touch-action":"none"}
),h.addClass("fullpage-wrapper")):console.error("Error! Fullpage.js needs to be initialized with a selector. For example:$('#myContainer').fullpage();
	");
	a(c.sectionSelector).each(function(){
	a(this).addClass("fp-section")}
);
	a(c.slideSelector).each(function(){
	a(this).addClass("fp-slide")}
);
	if(c.navigation){
	a("body").append('<div id="fp-nav"><ul></ul></div>');
	var x=a("#fp-nav");
	x.css("color",c.navigationColor);
	x.addClass(c.navigationPosition)}
a(".fp-section").each(function(b){
	var d=a(this),e=a(this).find(".fp-slide"),f=e.length;
	b||0!==a(".fp-section.active").length||a(this).addClass("active");
	a(this).css("height",n+"px");
	(c.paddingTop||c.paddingBottom)&&a(this).css("padding",c.paddingTop+" 0 "+c.paddingBottom+" 0");
	"undefined"!==typeof c.sectionsColor[b]&&a(this).css("background-color",c.sectionsColor[b]);
	"undefined"!==typeof c.anchors[b]&&a(this).attr("data-anchor",c.anchors[b]);
	if(c.navigation){
	var g="";
	c.anchors.length&&(g=c.anchors[b]);
	b=c.navigationTooltips[b];
	"undefined"===typeof b&&(b="");
	x.find("ul").append('<li data-tooltip="'+b+'"><a href="#'+g+'"><span></span></a></li>')}
if(1<f){
	var g=100*f,h=100/f;
	e.wrapAll('<div class="fp-slidesContainer" />');
	e.parent().wrap('<div class="fp-slides" />');
	a(this).find(".fp-slidesContainer").css("width",g+"%");
	a(this).find(".fp-slides").after('<div class="fp-controlArrow fp-prev"></div><div class="fp-controlArrow fp-next"></div>');
	"#fff"!=c.controlArrowColor&&(a(this).find(".fp-controlArrow.fp-next").css("border-color","transparent transparent transparent "+c.controlArrowColor),a(this).find(".fp-controlArrow.fp-prev").css("border-color","transparent "+c.controlArrowColor+" transparent transparent"));
	c.loopHorizontal||a(this).find(".fp-controlArrow.fp-prev").hide();
	c.slidesNavigation&&ha(a(this),f);
	e.each(function(b){
	var e=d.find(".fp-slide.active");
	b||0!=e.length?ba(e):a(this).addClass("active");
	a(this).css("width",h+"%");
	c.verticalCentered&&Y(a(this))}
)}
else c.verticalCentered&&Y(a(this))}
).promise().done(function(){
	a.fn.fullpage.setAutoScrolling(c.autoScrolling);
	var b=a(".fp-section.active").find(".fp-slide.active");
	b.length&&(0!=a(".fp-section.active").index(".fp-section")||0==a(".fp-section.active").index(".fp-section")&&0!=b.index())&&ba(b);
	c.fixedElements&&c.css3&&a(c.fixedElements).appendTo("body");
	c.navigation&&(x.css("margin-top","-"+x.height()/2+"px"),x.find("li").eq(a(".fp-section.active").index(".fp-section")).find("a").addClass("active"));
	c.menu&&c.css3&&a(c.menu).closest(".fullpage-wrapper").length&&a(c.menu).appendTo("body");
	c.scrollOverflow?(h.hasClass("fullpage-used")&&N(),a(window).on("load",N)):a.isFunction(c.afterRender)&&c.afterRender.call(this);
	b=window.location.hash.replace("#","").split("/")[0];
	if(b.length){
	var d=a('[data-anchor="'+b+'"]');
	!c.animateAnchor&&d.length&&(c.autoScrolling?v(d.position().top):(v(0),a("html,body").scrollTop(d.position().top)),I(b),J(b,null),a.isFunction(c.afterLoad)&&c.afterLoad.call(this,b,d.index(".fp-section")+1),d.addClass("active").siblings().removeClass("active"))}
a(window).on("load",function(){
	var a=window.location.hash.replace("#","").split("/"),b=a[0],a=a[1];
	b&&L(b,a)}
)}
);
	var P,G=!1;
	a(window).on("scroll",O);
	var z=0,C=0,y=0,B=0;
	a.fn.fullpage.moveSectionUp=function(){
	var b=a(".fp-section.active").prev(".fp-section");
	b.length||!c.loopTop&&!c.continuousVertical||(b=a(".fp-section").last());
	b.length&&l(b,null,!0)}
;
	a.fn.fullpage.moveSectionDown=function(){
	var b=a(".fp-section.active").next(".fp-section");
	b.length||!c.loopBottom&&!c.continuousVertical||(b=a(".fp-section").first());
	b.length&&l(b,null,!1)}
;
	a.fn.fullpage.moveTo=function(b,c){
	var e="",e=isNaN(b)?a('[data-anchor="'+b+'"]'):a(".fp-section").eq(b-1);
	"undefined"!==typeof c?L(b,c):0<e.length&&l(e)}
;
	a.fn.fullpage.moveSlideRight=function(){
	S("next")}
;
	a.fn.fullpage.moveSlideLeft=function(){
	S("prev")}
;
	a(window).on("hashchange",V);
	a(document).keydown(function(b){
	if(c.keyboardScrolling&&!t)switch(b.which){
	case 38:case 33:a.fn.fullpage.moveSectionUp();
	break;
	case 40:case 34:a.fn.fullpage.moveSectionDown();
	break;
	case 36:a.fn.fullpage.moveTo(1);
	break;
	case 35:a.fn.fullpage.moveTo(a(".fp-section").length);
	break;
	case 37:a.fn.fullpage.moveSlideLeft();
	break;
	case 39:a.fn.fullpage.moveSlideRight()}
}
);
	a(document).on("click","#fp-nav a",function(b){
	b.preventDefault();
	b=a(this).parent().index();
	l(a(".fp-section").eq(b))}
);
	a(document).on({
	mouseenter:function(){
	var b=a(this).data("tooltip");
	a('<div class="fp-tooltip '+c.navigationPosition+'">'+b+"</div>").hide().appendTo(a(this)).fadeIn(200)}
,mouseleave:function(){
	a(this).find(".fp-tooltip").fadeOut().remove()}
}
,"#fp-nav li");
	c.normalScrollElements&&(a(document).on("mouseenter",c.normalScrollElements,function(){
	a.fn.fullpage.setMouseWheelScrolling(!1)}
),a(document).on("mouseleave",c.normalScrollElements,function(){
	a.fn.fullpage.setMouseWheelScrolling(!0)}
));
	a(".fp-section").on("click",".fp-controlArrow",function(){
	a(this).hasClass("fp-prev")?a.fn.fullpage.moveSlideLeft():a.fn.fullpage.moveSlideRight()}
);
	a(".fp-section").on("click",".toSlide",function(b){
	b.preventDefault();
	b=a(this).closest(".fp-section").find(".fp-slides");
	b.find(".fp-slide.active");
	var c=null,c=b.find(".fp-slide").eq(a(this).data("index")-1);
	0<c.length&&k(b,c)}
);
	var da;
	a(window).resize(function(){
	M?a.fn.fullpage.reBuild():(clearTimeout(da),da=setTimeout(a.fn.fullpage.reBuild,500))}
);
	a.fn.fullpage.reBuild=function(){
	E=!0;
	var b=a(window).width();
	n=a(window).height();
	c.resize&&ga(n,b);
	a(".fp-section").each(function(){
	parseInt(a(this).css("padding-bottom"));
	parseInt(a(this).css("padding-top"));
	c.verticalCentered&&a(this).find(".fp-tableCell").css("height",Z(a(this))+"px");
	a(this).css("height",n+"px");
	if(c.scrollOverflow){
	var b=a(this).find(".fp-slide");
	b.length?b.each(function(){
	A(a(this))}
):A(a(this))}
b=a(this).find(".fp-slides");
	b.length&&k(b,b.find(".fp-slide.active"))}
);
	a(".fp-section.active").position();
	b=a(".fp-section.active");
	b.index(".fp-section")&&l(b);
	E=!1;
	a.isFunction(c.afterResize)&&c.afterResize.call(this)}
;
	a(document).on("click",".fp-slidesNav a",function(b){
	b.preventDefault();
	b=a(this).closest(".fp-section").find(".fp-slides");
	var c=b.find(".fp-slide").eq(a(this).closest("li").index());
	k(b,c)}
);
	a.fn.fullpage.destroy=function(b){
	a.fn.fullpage.setAutoScrolling(!1);
	a.fn.fullpage.setAllowScrolling(!1);
	a.fn.fullpage.setKeyboardScrolling(!1);
	a(window).off("scroll",O).off("hashchange",V);
	a(document).off("click","#fp-nav a").off("mouseenter","#fp-nav li").off("mouseleave","#fp-nav li").off("click",".fp-slidesNav a").off("mouseover",c.normalScrollElements).off("mouseout",c.normalScrollElements);
	a(".fp-section").off("click",".fp-controlArrow").off("click",".toSlide");
	b&&ja()}
}
}
)(jQuery);
	

CSS代码(jquery.fullPage.css):

/** * fullPage 2.1.9 * https://github.com/alvarotrigo/fullPage.js * MIT licensed * * Copyright (C) 2013 alvarotrigo.com - A project by Alvaro Trigo */
html,body{margin:0;padding:0;overflow:hidden;/*Avoid flicker on slides transitions for mobile phones #336 */
 -webkit-tap-highlight-color:rgba(0,0,0,0);}
#superContainer{height:100%;position:relative;/* Touch detection for Windows 8 */
 -ms-touch-action:none;/* IE 11 on Windows Phone 8.1*/
 touch-action:none;}
.fp-section{position:relative;-webkit-box-sizing:border-box;/* Safari<=5 Android<=3 */
 -moz-box-sizing:border-box;/* <=28 */
 box-sizing:border-box;}
.fp-slide{float:left;}
.fp-slide,.fp-slidesContainer{height:100%;display:block;}
.fp-slides{z-index:1;height:100%;overflow:hidden;position:relative;-webkit-transition:all 0.3s ease-out;/* Safari<=6 Android<=4.3 */
 transition:all 0.3s ease-out;}
.fp-section.fp-table,.fp-slide.fp-table{display:table;width:100%;}
.fp-tableCell{display:table-cell;vertical-align:middle;width:100%;height:100%;}
.fp-slidesContainer{float:left;position:relative;}
.fp-controlArrow{position:absolute;z-index:4;top:50%;cursor:pointer;width:0;height:0;border-style:solid;margin-top:-38px;}
.fp-controlArrow.fp-prev{left:15px;width:0;border-width:38.5px 34px 38.5px 0;border-color:transparent #fff transparent transparent;}
.fp-controlArrow.fp-next{right:15px;border-width:38.5px 0 38.5px 34px;border-color:transparent transparent transparent #fff;}
.fp-scrollable{overflow:scroll;}
.fp-easing{-webkit-transition:all 0.7s ease-out;/* Safari<=6 Android<=4.3 */
 transition:all 0.7s ease-out;}
#fp-nav{position:fixed;z-index:100;margin-top:-32px;top:50%;opacity:1;}
#fp-nav.right{right:17px;}
#fp-nav.left{left:17px;}
.fp-slidesNav{position:absolute;z-index:4;left:50%;opacity:1;}
.fp-slidesNav.bottom{bottom:17px;}
.fp-slidesNav.top{top:17px;}
#fp-nav ul,.fp-slidesNav ul{margin:0;padding:0;}
#fp-nav li,.fp-slidesNav li{display:block;width:14px;height:13px;margin:7px;position:relative;}
.fp-slidesNav li{display:inline-block;}
#fp-nav li a,.fp-slidesNav li a{display:block;position:relative;z-index:1;width:100%;height:100%;cursor:pointer;text-decoration:none;}
#fp-nav li .active span,.fp-slidesNav .active span{background:#333;}
#fp-nav span,.fp-slidesNav span{top:2px;left:2px;width:8px;height:8px;border:1px solid #000;background:rgba(0,0,0,0);border-radius:50%;position:absolute;z-index:1;}
.fp-tooltip{position:absolute;top:-2px;color:#fff;font-size:14px;font-family:arial,helvetica,sans-serif;white-space:nowrap;max-width:220px;}
.fp-tooltip.right{right:20px;}
.fp-tooltip.left{left:20px;}
附件:下载该文件资源,减少时间成本(增值服务)
留言
该资源可下载
File Source
.rar
2.24 MB
Html 滑动滚动特效
最新结算
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
打赏文章