jQuery实现图片横向滚动特效



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

140 559 187



特效描述:jQuery实现 图片横向 滚动特效。jQuery实现图片横向滚动特效

代码结构

1. 引入CSS

<link rel="stylesheet" href="css/reset.css">
<link rel="stylesheet" href="css/jquery.scrollgallery.css">

2. 引入JS

<script src="js/jquery.min.js" type="text/javascript"></script>
<script src="js/jquery.easing.min.js" type="text/javascript"></script>
<script src="js/jquery.scrollgallery.min.js" type="text/javascript"></script>

3. HTML代码

<div class="wrapper">
	<div class="gallery-container">
		<div class="gallery">
			<div class="image-item gallery-info">
				<h2>Photography Information</h2>
				<p>Click the image to navigate.</p>
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Rerum, error, magnam reprehenderit molestias deleniti quam vitae molestiae similique aspernatur saepe praesentium eveniet delectus rem ut eaque numquam in optio! Eos!</p>
				<p>Lorem ipsum dolor sit amet, consectetur hyperlink adipisicing elit. Rerum, error, magnam reprehenderit molestias deleniti quam vitae molestiae similique aspernatur saepe praesentium eveniet delectus rem ut eaque numquam in optio! Eos!</p>
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Rerum, error, magnam reprehenderit molestias deleniti quam vitae molestiae similique aspernatur saepe praesentium eveniet delectus rem ut eaque numquam in optio! Eos!</p>
			</div>
			<img src="images/flickr_people/5271697131_90375a1da9_b_d.jpg" alt="image" class="image-item" />
			<div class="image-item">
				<img src="images/flickr_people/6992105054_eeedf0d502_o_d.jpg" alt="image" />
				<p class="caption">Fugiat, nisi, similique, odio eos quidem impedit facilis tenetur saepe aliquam eligendi aperiam.</p>
			</div>
			<div class="image-item">
				<img src="images/flickr_people/7134946449_064fceb7f4_o_d.jpg" alt="image" />
				<p class="caption">Some little information here. Support hyperlink too.</p>
			</div>
			<img src="images/flickr_people/5629018757_ce2fb64798_b_d.jpg" alt="image" class="image-item" />
			<img src="images/flickr_people/7730175960_fe582d68df_h_d.jpg" alt="image" class="image-item" />
			<img src="images/flickr_people/5679223548_883af87e9d_b_d.jpg" alt="image" class="image-item" />
			<img src="images/flickr_people/5725788340_4d2447a80a_b_d.jpg" alt="image" class="image-item" />
		</div>
		<div class="gallery">
			<div class="image-item gallery-info">
				<h2>Cards 01</h2>
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Rerum, error, magnam reprehenderit molestias deleniti quam vitae molestiae similique aspernatur saepe praesentium eveniet delectus rem ut eaque numquam in optio! Eos!</p>
				<p>Lorem ipsum dolor sit amet, consectetur hyperlink adipisicing elit. Rerum, error, magnam reprehenderit molestias deleniti quam vitae molestiae similique aspernatur saepe praesentium eveniet delectus rem ut eaque numquam in optio! Eos!</p>
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Rerum, error, magnam reprehenderit molestias deleniti quam vitae molestiae similique aspernatur saepe praesentium eveniet delectus rem ut eaque numquam in optio! Eos!</p>
			</div>
			<img src="images/cards/card02.jpg" alt="image" class="image-item" />
			<img src="images/cards/card04.jpg" alt="image" class="image-item" />
			<img src="images/cards/card05.jpg" alt="image" class="image-item" />
			<img src="images/cards/card06.jpg" alt="image" class="image-item" />
			<img src="images/cards/card07.jpg" alt="image" class="image-item" />
			<img src="images/cards/card08.jpg" alt="image" class="image-item" />
			<img src="images/cards/card09.jpg" alt="image" class="image-item" />
			<img src="images/cards/card12.jpg" alt="image" class="image-item" />
		</div>
		<div class="gallery">
			<img src="images/cards/card13.jpg" alt="image" class="image-item" />
			<img src="images/cards/card14.jpg" alt="image" class="image-item" />
			<img src="images/cards/card15.jpg" alt="image" class="image-item" />
			<img src="images/cards/card16.jpg" alt="image" class="image-item" />
			<img src="images/cards/card17.jpg" alt="image" class="image-item" />
			<img src="images/cards/card18.jpg" alt="image" class="image-item" />
			<div class="image-item gallery-info">
				<h2>You can put it in the end too</h2>
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Rerum, error, magnam reprehenderit molestias deleniti quam vitae molestiae similique aspernatur saepe praesentium eveniet delectus rem ut eaque numquam in optio! Eos!</p>
				<p>Lorem ipsum dolor sit amet, consectetur hyperlink adipisicing elit. Rerum, error, magnam reprehenderit molestias deleniti quam vitae molestiae similique aspernatur saepe praesentium eveniet delectus rem ut eaque numquam in optio! Eos!</p>
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Rerum, error, magnam reprehenderit molestias deleniti quam vitae molestiae similique aspernatur saepe praesentium eveniet delectus rem ut eaque numquam in optio! Eos!</p>
			</div>
		</div>
		<div class="gallery">
			<img src="images/books/book01.jpg" alt="image" class="image-item" />
			<img src="images/books/book02.jpg" alt="image" class="image-item" />
			<img src="images/books/book03.jpg" alt="image" class="image-item" />
			<img src="images/books/book04.jpg" alt="image" class="image-item" />
			<img src="images/books/book05.jpg" alt="image" class="image-item" />
			<img src="images/books/book06.jpg" alt="image" class="image-item" />
			<img src="images/books/book07.jpg" alt="image" class="image-item" />
		</div>
		<div class="gallery">
			<img src="images/books/moo01.jpg" alt="image" class="image-item" />
			<img src="images/books/moo02.jpg" alt="image" class="image-item" />
			<img src="images/books/moo03.jpg" alt="image" class="image-item" />
			<img src="images/books/moo04.jpg" alt="image" class="image-item" />
			<img src="images/books/moo05.jpg" alt="image" class="image-item" />
			<img src="images/books/moo06.jpg" alt="image" class="image-item" />
			<img src="images/books/moo07.jpg" alt="image" class="image-item" />
			<img src="images/books/moo08.jpg" alt="image" class="image-item" />
			<img src="images/books/moo09.jpg" alt="image" class="image-item" />
			<img src="images/books/moo10.jpg" alt="image" class="image-item" />
			<img src="images/books/moo11.jpg" alt="image" class="image-item" />
			<img src="images/books/moo12.jpg" alt="image" class="image-item" />
			<img src="images/books/moo13.jpg" alt="image" class="image-item" />
		</div>
	</div>
</div>
<div style="text-align:center;clear:both">
</div>



用户评论
大牛,别默默的看了,快登录帮我点评一下吧!:)      登录 | 注册
一往直前
一往直前 :  http://www.zhanmalls.com/ 站猫网,专业的源码交易平台,杜绝骗子,几万套源码免费招代理,注册会员就有自己的专属推广链接,任何一笔交易,都可以获得佣金,专业的源码担保交易平台
2019-04-22 22:05:21
小小的太阳
关注
TA的相关作品 >>更多
热搜关键词


热门标签: 滚动导航菜单 导航切换 缩略图 滚动切换 图片相册 图片滚动 图片切换 图片墙 文字滚动 文字切换 百叶窗 背景切换 图片网格 图片文字滚动 手风琴 图片九宫格 全屏滚动 选项卡自动切换 页面滚动 视频切换 图片高亮 列表切换 图片对比 图片文字 渐隐切换 单排图片 全屏切换 响应式图片 切换按钮 图片列表 缩放切换 滚动流动 图片拖动 图片放大镜 图片叠加 图片翻转旋转 图片延迟加载 图片淡出淡进 图片全屏 图片头像上传 二维码 滚动切换 滑动选项卡切换 图片广告 图片放大缩小 html5图片动画 带缩略图的幻灯片 地图 图片滚动 图片滑动 图片切换 图片收缩展开 旋转木马 图片轮播 自动滚动图片轮播 图标导航菜单 选项卡切换 滑动手风琴 背景切换 手风琴 图表 图片 头像截图

×
×
51前端

注册

×
绑定手机

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

×
单次下载支付

应付金额:279

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

官方QQ群
意见反馈
qq群

扫描上面二维码加微信群

官方QQ群

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

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