jQuery實現圖片橫向滾動特效



46 181 61



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


熱門標簽: 滾動 滾動條 頁面滾動 滾動插件 滾動條插件 滾動條美化 二維碼 頭像上傳 圖片上傳 圖片全屏 圖片淡出淡進 圖片淡出 圖片淡進 圖片延遲加載 圖片延遲 圖片加載 圖片翻轉 圖片旋轉 圖片疊加 圖片層疊 圖片放大鏡 圖片拖動 圖片拖拽 滾動切換 滾動條切換 圖片放大縮小 圖片縮放 圖片大小 圖片放大 圖片縮小 圖片變大 圖片變小 圖片廣告 h5圖片動畫 h5圖標動畫 html5圖片動畫 html5圖標動畫 帶縮略圖的幻燈片 地圖 中國地圖 世界地圖 滑動選項卡 滑動切換 純圖片輪播 圖片輪播 圖片滾動 圖片滾動條 旋轉木馬 圖片旋轉木馬 文字旋轉木馬 旋轉木馬插件 圖片滑動 圖片滑塊 圖片切換 圖片選項卡 圖標選項卡 圖片收縮展開 圖片收縮 圖片展開 圖標導航 圖標菜單 自動滾動圖片輪播 選項卡切換 選項卡 切換 tab切換 頁面切換 選項卡插件 切換插件 背景切換 大圖切換 滑動手風琴 手風琴 水平手風琴 垂直手風琴 圖片手風琴 文字手風琴 手風琴插件 圖表 圖片 圖片插件 頭像截圖 圖片相冊 相冊圖片 圖片滾動 圖片滾動條 圖片切換 圖片選項卡 圖標選項卡 單排圖片 兩排圖片 圖片切換 切換圖片
?
×
×

注冊

官方QQ群

掃描上面二維碼加微信群

官方QQ群

jQuery/js討論群
群號:642649996
Css3+Html5討論群
群號:322131262

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

老夫子电子