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



35 138 47



特效描述:基于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>



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


热门标签: 滚动 滚动条 页面滚动 滚动插件 滚动条插件 滚动条美化 图片放大镜 图片叠加 图片层叠 图片翻转 图片旋转 图片延迟加载 图片延迟 图片加载 图片淡出淡进 图片淡出 图片淡进 图片全屏 头像上传 图片上传 二维码 图片拖动 图片拖拽 flash焦点图 flash幻灯片 flashbanner flash图片轮播 h5图片动画 h5图标动画 html5图片动画 html5图标动画 滚动切换 滚动条切换 图片放大缩小 图片缩放 图片大小 图片放大 图片缩小 图片变大 图片变小 滑动选项卡 滑动切换 带缩略图的幻灯片 地图 中国地图 世界地图 图片广告 图片滑动 图片滑块 纯图片轮播 图片轮播 旋转木马 图片旋转木马 文字旋转木马 旋转木马插件 图片滚动 图片滚动条 图片切换 图片选项卡 图标选项卡 图片收缩展开 图片收缩 图片展开 图标导航 图标菜单 自动滚动图片轮播 选项卡切换 选项卡 切换 tab切换 页面切换 选项卡插件 切换插件 背景切换 大图切换 滑动手风琴 手风琴 水平手风琴 垂直手风琴 图片手风琴 文字手风琴 手风琴插件 渐隐切换 切换按钮 淡出淡进 淡出 淡进 图表 表单 表单美化 表单插件 表单美化插件 焦点图 幻灯片 轮播图 bar焦点图 图片 图片插件 头像截图 滚动切换 滚动条切换 文字淡出淡进 文字淡出 文字淡进 带简介的焦点图 图片切换 图片选项卡 图标选项卡 图片切换 切换图片 按钮控制

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

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

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