基于jQuery实现多功能垂直幻灯片切换代码



74 295 99



特效描述:基于jQuery实现 多功能垂直 幻灯片切换,基于jQuery实现多功能垂直幻灯片切换代码

代码结构

1. 引入CSS

<link rel="stylesheet" href="css/base.css">
<link rel="stylesheet" href="css/skeleton.css">
<link rel="stylesheet" href="css/prettify.css">
<link rel="stylesheet" href="css/layout.css">
<link rel="stylesheet" type="text/css" href="css/seria.css">

2. 引入JS

<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.easing.1.3.js"></script>
<script type="text/javascript" src="js/modernizr.js"></script>
<script type="text/javascript" src="js/prettify.js"></script>
<script type="text/javascript" src="js/custom.js"></script>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<script src="js/respond.js"></script>
<script type="text/javascript" src="js/jquery.seria.min.js"></script>

3. HTML代码

	<div class="container">		
		<p class="ten columns info">
			<a id="examples"></a>
			<strong>Example 1</strong> - Plugin with default settings, except fadeSync option that when set to true makes description move along with the photo when it scrolls
		</p>
		<!-- SEPARATOR --> <div class="separator"></div>
		<!-- Seria Plugin - Example 1
		================================================== -->		
		<div id="seria_1" class="seria">
			<ul class="seria-list">
				<li>
					<div class="seria-photo">
						<figure>
							<img src="pictures/pic1.jpg" alt="Picture">
							<figcaption>Caption for photo #1</figcaption>
						</figure>
					</div>
					<div class="seria-about">
						<h3>Photo title #1</h3>
						<div class="subheader"><small>13 Jan 2013 by John Doe</small></div>
						<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. 
						Aenean commodo ligula eget dolor. Aenean massa.</p>
						<a href="http://51qianduan.com/jiaoben/" title="Visit site">
							<strong>VISIT SITE</strong>
						</a>
					</div>
				</li>
				<li>
					<div class="seria-photo">
						<figure>
							<img src="pictures/pic2.jpg" alt="Picture">
							<figcaption>Caption for photo #2</figcaption>
						</figure>
					</div>
					<div class="seria-about">
						<h3>Photo title #2</h3>
						<div class="subheader"><small>13 Jan 2013 by John Doe</small></div>
						<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. 
						Aenean commodo ligula eget dolor. Aenean massa.</p>
						<a href="http://51qianduan.com/jiaoben/" title="Visit site">
							<strong>VISIT SITE</strong>
						</a>
					</div>
				</li>
				<li>
					<div class="seria-photo">
						<figure>
							<img src="pictures/pic3.jpg" alt="Picture">
							<figcaption>Caption for photo #3</figcaption>
						</figure>
					</div>
					<div class="seria-about">
						<h3>Photo title #3</h3>
						<div class="subheader"><small>13 Jan 2013 by John Doe</small></div>
						<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p>
						<a href="http://51qianduan.com/jiaoben/" title="Visit site">
							<strong>VISIT SITE</strong>
						</a>
					</div>
				</li>
				<li>
					<div class="seria-photo">
						<figure>
							<img src="pictures/pic4.jpg" alt="Picture">
							<figcaption>Caption for photo #4</figcaption>
						</figure>
					</div>
					<div class="seria-about">
						<h3>Photo title #4</h3>
						<div class="subheader"><small>13 Jan 2013 by John Doe</small></div>
						<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. 
						Aenean commodo ligula eget dolor. Aenean massa.</p>
						<a href="http://51qianduan.com/jiaoben/" title="Visit site">
							<strong>VISIT SITE</strong>
						</a>
					</div>
				</li>
				<li>
					<div class="seria-photo">
						<figure>
							<img src="pictures/pic5.jpg" alt="Picture">
							<figcaption>Caption for photo #5</figcaption>
						</figure>
					</div>
					<div class="seria-about">
						<h3>Photo title #5</h3>
						<div class="subheader"><small>13 Jan 2013 by John Doe</small></div>
						<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. 
						 Aenean massa.</p>
						<a href="http://51qianduan.com/jiaoben/" title="Visit site">
							<strong>VISIT SITE</strong>
						</a>
					</div>
				</li>
			</ul>
		</div> <!-- seria_1 -->
		<!-- SEPARATOR --> <div class="separator"></div>
		<p class="ten columns info">
			<strong>Example 2</strong> - This example uses "style2" of photo expand feature that allows you to scroll photos in larger size. Also since version 1.2 of Seria plugin you can configure transparancy and color for adjacent photo covers using corresponding plugin options
		</p>
		<!-- SEPARATOR --> <div class="separator"></div>
		<!-- Seria Plugin - Example 2
		================================================== -->
		<div id="seria_2" class="seria">
			<ul class="seria-list">
				<li>
					<div class="seria-photo">
						<figure>
							<img src="pictures/pic1.jpg" alt="Picture">
							<figcaption>Caption for photo #1</figcaption>
						</figure>
					</div>
					<div class="seria-about">
						<h3>Photo title #1</h3>
						<div class="subheader"><small>13 Jan 2013 by John Doe</small></div>
						<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. 
						Aenean commodo ligula eget dolor. Aenean massa.</p>
						<a href="http://51qianduan.com/jiaoben/" title="Visit site">
							<strong>VISIT SITE</strong>
						</a>
					</div>
				</li>
				<li>
					<div class="seria-photo">
						<figure>
							<img src="pictures/pic2.jpg" alt="Picture">
							<figcaption>Caption for photo #2</figcaption>
						</figure>
					</div>
					<div class="seria-about">
						<h3>Photo title #2</h3>
						<div class="subheader"><small>13 Jan 2013 by John Doe</small></div>
						<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. 
						Aenean commodo ligula eget dolor. Aenean massa.</p>
						<a href="http://51qianduan.com/jiaoben/" title="Visit site">
							<strong>VISIT SITE</strong>
						</a>
					</div>
				</li>
				<li>
					<div class="seria-photo">
						<figure>
							<img src="pictures/pic3.jpg" alt="Picture">
							<figcaption>Caption for photo #3</figcaption>
						</figure>
					</div>
					<div class="seria-about">
						<h3>Photo title #3</h3>
						<div class="subheader"><small>13 Jan 2013 by John Doe</small></div>
						<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p>
						<a href="http://51qianduan.com/jiaoben/" title="Visit site">
							<strong>VISIT SITE</strong>
						</a>
					</div>
				</li>
				<li>
					<div class="seria-photo">
						<figure>
							<img src="pictures/pic4.jpg" alt="Picture">
							<figcaption>Caption for photo #4</figcaption>
						</figure>
					</div>
					<div class="seria-about">
						<h3>Photo title #4</h3>
						<div class="subheader"><small>13 Jan 2013 by John Doe</small></div>
						<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. 
						Aenean commodo ligula eget dolor. Aenean massa.</p>
						<a href="http://51qianduan.com/jiaoben/" title="Visit site">
							<strong>VISIT SITE</strong>
						</a>
					</div>
				</li>
				<li>
					<div class="seria-photo">
						<figure>
							<img src="pictures/pic5.jpg" alt="Picture">
							<figcaption>Caption for photo #5</figcaption>
						</figure>
					</div>
					<div class="seria-about">
						<h3>Photo title #5</h3>
						<div class="subheader"><small>13 Jan 2013 by John Doe</small></div>
						<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. 
						 Aenean massa.</p>
						<a href="http://51qianduan.com/jiaoben/" title="Visit site">
							<strong>VISIT SITE</strong>
						</a>
					</div>
				</li>
			</ul>
		</div> <!-- seria_2 -->
		<!-- SEPARATOR --> <div class="separator"></div>
		<p class="ten columns info">
			<strong>Example 3</strong> - By default Seria works in "carousel" mode. Here we switched plugin to "normal" mode, where it stops on first/last item. Also you can see that adjacent images are hidden, and description fade works in "horizontal" direction
		</p>
		<!-- SEPARATOR --> <div class="separator"></div>	
		<!-- Seria Plugin - Example 3
		================================================== -->
		<div id="seria_3" class="seria">
			<ul class="seria-list">
				<li>
					<div class="seria-photo">
						<figure>
							<img src="pictures/pic1.jpg" alt="Picture">
							<figcaption>Caption for photo #1</figcaption>
						</figure>
					</div>
					<div class="seria-about">
						<h3>Photo title #1</h3>
						<div class="subheader"><small>13 Jan 2013 by John Doe</small></div>
						<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. 
						Aenean commodo ligula eget dolor. Aenean massa.</p>
						<a href="http://51qianduan.com/jiaoben/" title="Visit site">
							<strong>VISIT SITE</strong>
						</a>
					</div>
				</li>
				<li>
					<div class="seria-photo">
						<figure>
							<img src="pictures/pic2.jpg" alt="Picture">
							<figcaption>Caption for photo #2</figcaption>
						</figure>
					</div>
					<div class="seria-about">
						<h3>Photo title #2</h3>
						<div class="subheader"><small>13 Jan 2013 by John Doe</small></div>
						<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. 
						Aenean commodo ligula eget dolor. Aenean massa.</p>
						<a href="http://51qianduan.com/jiaoben/" title="Visit site">
							<strong>VISIT SITE</strong>
						</a>
					</div>
				</li>
				<li>
					<div class="seria-photo">
						<figure>
							<img src="pictures/pic3.jpg" alt="Picture">
							<figcaption>Caption for photo #3</figcaption>
						</figure>
					</div>
					<div class="seria-about">
						<h3>Photo title #3</h3>
						<div class="subheader"><small>13 Jan 2013 by John Doe</small></div>
						<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p>
						<a href="http://51qianduan.com/jiaoben/" title="Visit site">
							<strong>VISIT SITE</strong>
						</a>
					</div>
				</li>
				<li>
					<div class="seria-photo">
						<figure>
							<img src="pictures/pic4.jpg" alt="Picture">
							<figcaption>Caption for photo #4</figcaption>
						</figure>
					</div>
					<div class="seria-about">
						<h3>Photo title #4</h3>
						<div class="subheader"><small>13 Jan 2013 by John Doe</small></div>
						<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. 
						Aenean commodo ligula eget dolor. Aenean massa.</p>
						<a href="http://51qianduan.com/jiaoben/" title="Visit site">
							<strong>VISIT SITE</strong>
						</a>
					</div>
				</li>
				<li>
					<div class="seria-photo">
						<figure>
							<img src="pictures/pic5.jpg" alt="Picture">
							<figcaption>Caption for photo #5</figcaption>
						</figure>
					</div>
					<div class="seria-about">
						<h3>Photo title #5</h3>
						<div class="subheader"><small>13 Jan 2013 by John Doe</small></div>
						<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. 
						 Aenean massa.</p>
						<a href="http://51qianduan.com/jiaoben/" title="Visit site">
							<strong>VISIT SITE</strong>
						</a>
					</div>
				</li>
			</ul>
		</div> <!-- seria_3 -->
		<!-- SEPARATOR --> <div class="separator"></div>
		<p class="ten columns info">
			<strong>Example 4</strong> - In this last example Seria works in "normal" mode with adjacent photos that are partially visible. Description fade is now set to "vertical" direction and it works similar to Example 2, however description fade and scroll are not synced (fadeSync option)
		</p>
		<!-- SEPARATOR --> <div class="separator"></div>
		<!-- Seria Plugin - Example 4
		================================================== -->
		<div id="seria_4" class="seria">
			<ul class="seria-list">
				<li>
					<div class="seria-photo">
						<figure>
							<img src="pictures/pic1.jpg" alt="Picture">
							<figcaption>Caption for photo #1</figcaption>
						</figure>
					</div>
					<div class="seria-about">
						<h3>Photo title #1</h3>
						<div class="subheader"><small>13 Jan 2013 by John Doe</small></div>
						<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. 
						Aenean commodo ligula eget dolor. Aenean massa.</p>
						<a href="http://51qianduan.com/jiaoben/" title="Visit site">
							<strong>VISIT SITE</strong>
						</a>
					</div>
				</li>
				<li>
					<div class="seria-photo">
						<figure>
							<img src="pictures/pic2.jpg" alt="Picture">
							<figcaption>Caption for photo #2</figcaption>
						</figure>
					</div>
					<div class="seria-about">
						<h3>Photo title #2</h3>
						<div class="subheader"><small>13 Jan 2013 by John Doe</small></div>
						<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. 
						Aenean commodo ligula eget dolor. Aenean massa.</p>
						<a href="http://51qianduan.com/jiaoben/" title="Visit site">
							<strong>VISIT SITE</strong>
						</a>
					</div>
				</li>
				<li>
					<div class="seria-photo">
						<figure>
							<img src="pictures/pic3.jpg" alt="Picture">
							<figcaption>Caption for photo #3</figcaption>
						</figure>
					</div>
					<div class="seria-about">
						<h3>Photo title #3</h3>
						<div class="subheader"><small>13 Jan 2013 by John Doe</small></div>
						<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p>
						<a href="http://51qianduan.com/jiaoben/" title="Visit site">
							<strong>VISIT SITE</strong>
						</a>
					</div>
				</li>
				<li>
					<div class="seria-photo">
						<figure>
							<img src="pictures/pic4.jpg" alt="Picture">
							<figcaption>Caption for photo #4</figcaption>
						</figure>
					</div>
					<div class="seria-about">
						<h3>Photo title #4</h3>
						<div class="subheader"><small>13 Jan 2013 by John Doe</small></div>
						<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. 
						Aenean commodo ligula eget dolor. Aenean massa.</p>
						<a href="http://51qianduan.com/jiaoben/" title="Visit site">
							<strong>VISIT SITE</strong>
						</a>
					</div>
				</li>
				<li>
					<div class="seria-photo">
						<figure>
							<img src="pictures/pic5.jpg" alt="Picture">
							<figcaption>Caption for photo #5</figcaption>
						</figure>
					</div>
					<div class="seria-about">
						<h3>Photo title #5</h3>
						<div class="subheader"><small>13 Jan 2013 by John Doe</small></div>
						<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. 
						 Aenean massa.</p>
						<a href="http://51qianduan.com/jiaoben/" title="Visit site">
							<strong>VISIT SITE</strong>
						</a>
					</div>
				</li>
			</ul>
		</div> <!-- seria_4 -->
		<!-- SEPARATOR --> <div class="separator"></div>
		<!-- SEPARATOR --> <div class="separator"></div>
	</div><!-- container -->
<div style="text-align:center;margin:50px 0; font:normal 14px/24px 'MicroSoft YaHei';">
</div>



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


热门标签: 滚动导航菜单 导航切换 图片淡出淡进 图片头像上传 带标题的焦点图 滚动切换 文字淡出淡进 文件上传 带缩略图的幻灯片 带简介的焦点图 图片滚动 图片切换 文本框 图片轮播 文字滚动 文字切换 下拉框 自动滚动图片轮播 背景切换 复选 图片文字滚动 马赛克幻灯片 手风琴 单选 全屏滚动 全屏焦点图 选项卡自动切换 登录框 页面滚动 视频切换 注册框 列表切换 搜索框 验证码 渐隐切换 二级联动 全屏切换 三级联动 切换按钮 城市选择 缩放切换 value赋值 筛选 按钮控制 购物车 颜色选择 表单提交 全选/反选 添加删除 添加标签 密码强度验证 表单验证 html5按钮动画 按钮样式 密码修改设置 滚动流动 滚动切换 滑动选项卡切换 flash焦点图 自动滚动图片轮播 选项卡切换 滑动手风琴 渐隐切换 淡出淡入淡进 切换按钮 form表单 焦点图幻灯片

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

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

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