jquery Scrolldeck Parallax单页全屏大图切换鼠标滚动控制大图切换代码



如需定制开发(网站开发、二次开发)在线咨询,请点击>> QQ:753511799

283 1128 377



特效描述:jquery Scrolldeck Parallax 全屏大图切换 鼠标滚动控制 大图切换。全屏大图鼠标控制滚动+键盘事件--jQuery Scrolldeck Parallax Plugin Demo,很流行一款滚动视差插件。

代码结构

1. 引入CSS

<link href="style.css" rel="stylesheet" type="text/css" />

2. 引入JS

<script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="js/jquery.parallax-1.1.js"></script>
<script type="text/javascript" src="js/jquery.scrollTo-1.4.2-min.js"></script>
<script type="text/javascript" src="js/jquery.easing.1.3.js"></script>
<script type="text/javascript" src="js/jquery.scrollorama.js"></script>
<script type="text/javascript" src="js/jquery.scrolldeck.js"></script>

3. HTML代码

<ul id="nav">
	<li><a href="#intro" title="Next Section"></a></li>
	<li><a href="#second" title="Next Section"></a></li>
	<li><a href="#third" title="Next Section"></a></li>
</ul>
<div id="intro" class="slide">
	<div class="story">
		<div class="float-left">
			<h2>(Almost) Static Background</h2>
			<p>This section has a background that moves slightly slower than the user scrolls. This is achieved by changing the top position of the background for every pixel the page is scrolled.</p>
		</div>
	</div>
</div><!--intro end-->
<div id="second" class="slide">
	<div class="story">
		<div class="bg"></div>
		<div class="float-right">
			<h2>Multiple Backgrounds</h2>
			<p>The multiple backgrounds applied to this section are moved in a similar way to the first section -- every time the user scrolls down the page by a pixel, the positions of the backgrounds are changed.</p>
			<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean nibh erat, sagittis sit amet congue at, aliquam eu libero. Integer molestie, turpis vel ultrices facilisis, nisi mauris sollicitudin mauris, volutpat elementum enim urna eget odio. Donec egestas aliquet facilisis. Nunc eu nunc eget neque ornare fringilla. Nam vel sodales lectus. Nulla in pellentesque eros. Donec ultricies, enim vitae varius cursus, risus mauris iaculis neque, euismod sollicitudin metus erat vitae sapien. Sed pulvinar.</p>
		</div>
	</div>
</div><!--second end-->
<div id="third" class="slide">
	<div class="story">
		<div class="float-left">
			<h2>What Happens When JavaScript is Disabled?</h2>
			<p>The user gets a slap! Actually, all that jQuery does is moves the backgrounds relative to the position of the scrollbar. Without it, the backgrounds simply stay put and the user would never know they are missing out on the awesome! CSS2 does a good enough job to still make the effect look cool.</p>
		</div>
	</div>
</div><!--third end-->



用户评论
大牛,别默默的看了,快登录帮我点评一下吧!:)      登录 | 注册



×
×
51前端

注册

×
绑定手机

请绑定手机号,在继续操作

×
单次下载支付

应付金额:279

支付完成后,回到下载页面,在进行下载

官方QQ群
意见反馈
qq群

扫描上面二维码加微信群

官方QQ群

jQuery/js讨论群
群号:642649996
Css3+Html5讨论群
群号:322131262

加群请备注:从官网了解到