基于jQuery實現多功能垂直幻燈片切換代碼



42 167 56



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

加群請備注:從官網了解到

老夫子电子