jQuery页面滚动触发区块特效代码下载



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

43 168 57



特效描述:页面滚动 触发区块。jQuery页面滚动触发区块特效代码下载

代码结构

1. 引入CSS

<link rel="stylesheet" type="text/css" href="css/normalize.css" />
<link rel="stylesheet" type="text/css" href="css/demo.css">
<link rel="stylesheet" href="dist/demo.min.css">
<link rel="stylesheet" type="text/css" href="css/animate.min.css">

2. 引入JS

<script src="js/jquery-1.11.0.min.js" type="text/javascript"></script>
<script src="dist/scrolla.jquery.min.js"></script>

3. HTML代码

<section class="section section-demo">
	<div class="wrapper">
		<div class="items group">
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.1s"></div>
			</div>
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.2s"></div>
			</div>
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.3s"></div>
			</div>
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.2s"></div>
			</div>
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.1s"></div>
			</div>
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.0s"></div>
			</div>
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.1s"></div>
			</div>
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.2s"></div>
			</div>
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.3s"></div>
			</div>
			<div class="item">
				<div class="block offset animate" data-animate="bounceIn" data-duration="2.0s" data-delay="0.4s" data-offset="100"></div>
			</div>
			<div class="item">
				<div class="block offset animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.9s" data-offset="300"></div>
			</div>
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.2s"></div>
			</div>
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.1s"></div>
			</div>
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.0s"></div>
			</div>
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.1s"></div>
			</div>
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.2s"></div>
			</div>
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.1s"></div>
			</div>
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.2s"></div>
			</div>
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.3s"></div>
			</div>
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.2s"></div>
			</div>
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.1s"></div>
			</div>
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.2s"></div>
			</div>
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.3s"></div>
			</div>
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.2s"></div>
			</div>
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.1s"></div>
			</div>
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.0s"></div>
			</div>
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.1s"></div>
			</div>
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.2s"></div>
			</div>
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.3s"></div>
			</div>
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.4s"></div>
			</div>
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.3s"></div>
			</div>
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.2s"></div>
			</div>
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.1s"></div>
			</div>
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.0s"></div>
			</div>
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.1s"></div>
			</div>
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.2s"></div>
			</div>
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.1s"></div>
			</div>
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.2s"></div>
			</div>
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.3s"></div>
			</div>
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.2s"></div>
			</div>
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.3s"></div>
			</div>
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.2s"></div>
			</div>
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.1s"></div>
			</div>
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.0s"></div>
			</div>
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.1s"></div>
			</div>
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.2s"></div>
			</div>
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.1s"></div>
			</div>
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.2s"></div>
			</div>
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.3s"></div>
			</div>
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.2s"></div>
			</div>
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.3s"></div>
			</div>
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.2s"></div>
			</div>
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.1s"></div>
			</div>
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.0s"></div>
			</div>
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.1s"></div>
			</div>
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.2s"></div>
			</div>
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.1s"></div>
			</div>
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.2s"></div>
			</div>
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.3s"></div>
			</div>
			<div class="item">
				<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.2s"></div>
			</div>
		</div>
	</div>
	<div class="buttons">
		<a href="#" class="button animate" data-animate="flipInY" data-duration="2.0s" data-delay="0.1s" id="button-show-window">打开一个模态窗口</a>
	</div>
</section>
<script id="modal-template" type="text/html">
	<section class="modal">
		<div class="modal-container">
			<div class="modal-middle">
				<div class="modal-box animate" data-animate="fadeIn" data-duration="0.35s">
					<h2>Dynamic modal window</h2>
					<p>$('.animate').scrolla('bind');</p>
					<div class="boxs group">
						<div class="item">
							<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.2s"></div>
						</div>
						<div class="item">
							<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.3s"></div>
						</div>
						<div class="item">
							<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.2s"></div>
						</div>
						<div class="item">
							<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.1s"></div>
						</div>
						<div class="item">
							<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.0s"></div>
						</div>
						<div class="item">
							<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.1s"></div>
						</div>
						<div class="item">
							<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.2s"></div>
						</div>
						<div class="item">
							<div class="block animate" data-animate="bounceIn" data-duration="1.0s" data-delay="0.1s"></div>
						</div>
					</div>
					<div class="buttons">
						<button class="button modal-close">Close</button>
					</div>
				</div>
			</div>
		</div>
	</section>
</script>
<script>
$('.animate').scrolla({
	mobile: false,
	once: false
});
$('#button-show-window').click(function() {
	var template = $('#modal-template').html();
	$('body').append(template);
	$('.animate').scrolla('bind');
	$('section.modal .modal-close').click(function() {
		$(this).closest('section.modal').remove();
	});
	return false;
});
</script>
<div style="text-align:center;margin:50px 0; font:normal 14px/24px 'MicroSoft YaHei';">
</div>



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


热门标签: 滚动导航菜单 滚动切换 图片滚动 文字滚动 图片文字滚动 全屏滚动 页面滚动 滚动流动 自动滚动图片轮播

×
×
51前端

注册

×
绑定手机

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

×
单次下载支付

应付金额:279

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

官方QQ群
意见反馈
qq群

扫描上面二维码加微信群

官方QQ群

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

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