jQuery手机端商品手指滑动切换特效代码下载

jQuery手机端商品手指滑动切换特效代码下载

1. 引入CSS

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

2. 引入JS

<script src="js/modernizr.js"></script>
<script src="js/jquery-2.1.1.js"></script>
<script src="js/jquery.mobile.min.js"></script>
<script src="js/main.js"></script>

3. HTML代码

<p class="credits">产品焦点图特效</p>
<ul class="cd-gallery">
	<li>
		<a href="#">
			<ul class="cd-item-wrapper">
				<li class="selected">
					<img src="img/ugmonk-tshirt-1.jpg" alt="Preview image">
				</li>
				<li class="move-right" data-sale="true" data-price="$22">
					<img src="img/ugmonk-tshirt-2.jpg" alt="Preview image">
				</li>
				<li>
					<img src="img/ugmonk-tshirt-3.jpg" alt="Preview image">
				</li>
			</ul> <!-- cd-item-wrapper -->
		</a>
		<div class="cd-item-info">
			<b><a href="#0">Mountains</a></b>
			<em class="cd-price">$26</em>
		</div> <!-- cd-item-info -->
	</li>
	<li>
		<a href="#">
			<ul class="cd-item-wrapper">
				<li class="selected">
					<img src="img/ugmonk-cap-1.jpg" alt="Preview image">
				</li>
				<li class="move-right">
					<img src="img/ugmonk-cap-2.jpg" alt="Preview image">
				</li>
				<li>
					<img src="img/ugmonk-cap-3.jpg" alt="Preview image">
				</li>
			</ul> <!-- cd-item-wrapper -->
		</a>
		<div class="cd-item-info">
			<b><a href="#0">Baseball Cap</a></b>
			<em class="cd-price">$42</em>
		</div> <!-- cd-item-info -->
	</li>
	<li>
		<a href="#">
			<ul class="cd-item-wrapper">
				<li class="selected">
					<img src="img/ugmonk-bag-1.jpg" alt="Preview image">
				</li>
				<li class="move-right">
					<img src="img/ugmonk-bag-2.jpg" alt="Preview image">
				</li>
				<li>
					<img src="img/ugmonk-bag-3.jpg" alt="Preview image">
				</li>
			</ul> <!-- cd-item-wrapper -->
		</a>
		<div class="cd-item-info">
			<b><a href="#0">Messenger Bag</a></b>
			<em class="cd-price">$235</em>
		</div> <!-- cd-item-info -->
	</li>
	<li>
		<a href="#">
			<ul class="cd-item-wrapper">
				<li class="selected">
					<img src="img/ugmonk-tshirt-1.jpg" alt="Preview image">
				</li>
				<li class="move-right" data-sale="true" data-price="$22">
					<img src="img/ugmonk-tshirt-2.jpg" alt="Preview image">
				</li>
				<li>
					<img src="img/ugmonk-tshirt-3.jpg" alt="Preview image">
				</li>
			</ul> <!-- cd-item-wrapper -->
		</a>
		<div class="cd-item-info">
			<b><a href="#0">Mountains</a></b>
			<em class="cd-price">$26</em>
		</div> <!-- cd-item-info -->
	</li>
	<li>
		<a href="#">
			<ul class="cd-item-wrapper">
				<li class="selected">
					<img src="img/ugmonk-cap-1.jpg" alt="Preview image">
				</li>
				<li class="move-right">
					<img src="img/ugmonk-cap-2.jpg" alt="Preview image">
				</li>
				<li>
					<img src="img/ugmonk-cap-3.jpg" alt="Preview image">
				</li>
			</ul> <!-- cd-item-wrapper -->
		</a>
		<div class="cd-item-info">
			<b><a href="#0">Baseball Cap</a></b>
			<em class="cd-price">$42</em>
		</div> <!-- cd-item-info -->
	</li>
	<li>
		<a href="#">
			<ul class="cd-item-wrapper">
				<li class="selected">
					<img src="img/ugmonk-bag-1.jpg" alt="Preview image">
				</li>
				<li class="move-right">
					<img src="img/ugmonk-bag-2.jpg" alt="Preview image">
				</li>
				<li>
					<img src="img/ugmonk-bag-3.jpg" alt="Preview image">
				</li>
			</ul> <!-- cd-item-wrapper -->
		</a>
		<div class="cd-item-info">
			<b><a href="#0">Messenger Bag</a></b>
			<em class="cd-price">$235</em>
		</div> <!-- cd-item-info -->
	</li>
</ul> <!-- cd-gallery -->
<script src="js/main.js"></script> <!-- Resource jQuery -->
<div style="text-align:center;margin:1px 0; font:normal 14px/24px 'MicroSoft YaHei';">
</div>

用户评论

18素材网

一个让开发更高效的素材分享平台,用于快速开发强大的Web界面。


官方QQ群

扫描上面二维码加微信群

官方QQ群

jQuery/js讨论群
群号:864918708
Css3+Html5讨论群
群号:864918708

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