html5全屏图片左右切换点击弹出图片详情代码



349 1393 465



特效描述:html5 全屏图片 左右切换 点击弹出 图片详情代码,html5左右图片切换,html5图片详情

代码结构

1. 引入CSS

<link rel="stylesheet" type="text/css" href="css/normalize.css" />
<link rel="stylesheet" type="text/css" href="fonts/font-awesome-4.3.0/css/font-awesome.min.css" />
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="stylesheet" type="text/css" href="css/component.css" />

2. 引入JS

<script type="text/javascript" src="js/classie.js"></script>
<script type="text/javascript" src="js/dynamics.min.js"></script>
<script type="text/javascript" src="js/main.js"></script>

3. HTML代码

<div class="container">
	<div class="deco deco--title"></div>
	<div id="slideshow" class="slideshow">
		<div class="slide">
			<h2 class="slide__title slide__title--preview">Macadamia Skin Oil <span class="slide__price">$39</span></h2>
			<div class="slide__item">
				<div class="slide__inner">
					<img class="slide__img slide__img--small" src="img/small/1.png" alt="Some image" />
					<button class="action action--open" aria-label="View details"><i class="fa fa-plus"></i></button>
				</div>
			</div>
			<div class="slide__content">
				<div class="slide__content-scroller">
					<img class="slide__img slide__img--large" src="img/1.png" alt="Some image" />
					<div class="slide__details">
						<h2 class="slide__title slide__title--main">Macadamia Skin Oil</h2>
						<p class="slide__description">Hydration for very dry skin</p>
						<div>
							<span class="slide__price slide__price--large">$39</span>
							<button class="button button--buy">Add to cart</button>
						</div>
					</div><!-- /slide__details -->
				</div><!-- slide__content-scroller -->
			</div><!-- slide__content -->
		</div>
		<div class="slide">
			<h2 class="slide__title slide__title--preview">Grapeseed Skin Oil <span class="slide__price">$19</span></h2>
			<div class="slide__item">
				<div class="slide__inner">
					<img class="slide__img slide__img--small" src="img/small/2.png" alt="Some image" />
					<button class="action action--open" aria-label="View details"><i class="fa fa-plus"></i></button>
				</div>
			</div>
			<div class="slide__content">
				<div class="slide__content-scroller">
					<img class="slide__img slide__img--large" src="img/2.png" alt="Some image" />
					<div class="slide__details">
						<h2 class="slide__title slide__title--main">Grapeseed Skin Oil</h2>
						<p class="slide__description">Moisture control for all skin types</p>
						<div>
							<span class="slide__price slide__price--large">$19</span>
							<button class="button button--buy">Add to cart</button>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="slide">
			<h2 class="slide__title slide__title--preview">Jojoba Skin Oil <span class="slide__price">$35</span></h2>
			<div class="slide__item">
				<div class="slide__inner">
					<img class="slide__img slide__img--small" src="img/small/3.png" alt="Some image" />
					<button class="action action--open" aria-label="View details"><i class="fa fa-plus"></i></button>
				</div>
			</div>
			<div class="slide__content">
				<div class="slide__content-scroller">
					<img class="slide__img slide__img--large" src="img/3.png" alt="Some image" />
					<div class="slide__details">
						<h2 class="slide__title slide__title--main">Jojoba Skin Oil</h2>
						<p class="slide__description">Protection for sensitive skin</p>
						<div>
							<span class="slide__price slide__price--large">$35</span>
							<button class="button button--buy">Add to cart</button>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="slide">
			<h2 class="slide__title slide__title--preview">Amaranth Skin Oil <span class="slide__price">$29</span></h2>
			<div class="slide__item">
				<div class="slide__inner">
					<img class="slide__img slide__img--small" src="img/small/4.png" alt="Some image" />
					<button class="action action--open" aria-label="View details"><i class="fa fa-plus"></i></button>
				</div>
			</div>
			<div class="slide__content">
				<div class="slide__content-scroller">
					<img class="slide__img slide__img--large" src="img/4.png" alt="Some image" />
					<div class="slide__details">
						<h2 class="slide__title slide__title--main">Amaranth Skin Oil</h2>
						<p class="slide__description">Rich hydration for mature skin</p>
						<div>
							<span class="slide__price slide__price--large">$29</span>
							<button class="button button--buy">Add to cart</button>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="slide">
			<h2 class="slide__title slide__title--preview">Argan Skin Oil <span class="slide__price">$59</span></h2>
			<div class="slide__item">
				<div class="slide__inner">
					<img class="slide__img slide__img--small" src="img/small/5.png" alt="Some image" />
					<button class="action action--open" aria-label="View details"><i class="fa fa-plus"></i></button>
				</div>
			</div>
			<div class="slide__content">
				<div class="slide__content-scroller">
					<img class="slide__img slide__img--large" src="img/5.png" alt="Some image" />
					<div class="slide__details">
						<h2 class="slide__title slide__title--main">Argan Skin Oil</h2>
						<p class="slide__description">Moisture for problematic &amp; dry skin</p>
						<div>
							<span class="slide__price slide__price--large">$59</span>
							<button class="button button--buy">Add to cart</button>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="slide">
			<h2 class="slide__title slide__title--preview">Avocado Skin Oil <span class="slide__price">$39</span></h2>
			<div class="slide__item">
				<div class="slide__inner">
					<img class="slide__img slide__img--small" src="img/small/6.png" alt="Some image" />
					<button class="action action--open" aria-label="View details"><i class="fa fa-plus"></i></button>
				</div>
			</div>
			<div class="slide__content">
				<div class="slide__content-scroller">
					<img class="slide__img slide__img--large" src="img/6.png" alt="Some image" />
					<div class="slide__details">
						<h2 class="slide__title slide__title--main">Avocado Skin Oil</h2>
						<p class="slide__description">Deep repair for stressed skin</p>
						<div>
							<span class="slide__price slide__price--large">$39</span>
							<button class="button button--buy">Add to cart</button>
						</div>
					</div>
				</div>
			</div>
		</div>
		<button class="action action--close" aria-label="Close"><i class="fa fa-close"></i></button>
	</div>
</div><!-- /container -->
<script type="text/javascript">
(function() {
	document.documentElement.className = 'js';
	var slideshow = new CircleSlideshow(document.getElementById('slideshow'));
})();
</script>



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


热门标签: 顶部悬浮 底部悬浮 浮动导航菜单 导航切换 右键菜单 图片全屏 图片头像上传 图片广告 文字提示框 文字全屏 文件上传 对联广告 图片切换 提示框/弹出层 360全景 文本框 文字切换 layer 下拉框 叠加浮动层 背景切换 lightbox 复选 手风琴 单选 Tooltip工具提示框 选项卡自动切换 登录框 浮动提示框 视频切换 注册框 html5弹窗动画 列表切换 搜索框 验证码 渐隐切换 二级联动 全屏切换 三级联动 切换按钮 城市选择 缩放切换 value赋值 筛选 按钮控制 购物车 颜色选择 表单提交 全选/反选 添加删除 添加标签 密码强度验证 表单验证 html5按钮动画 按钮样式 密码修改设置 滚动切换 滑动选项卡切换 悬浮浮动漂浮 弹出层拖动 选项卡切换 滑动手风琴 窗口提示框 全屏焦点图 浮动提示框 全屏切换 切换按钮 宽屏全屏满屏 form表单

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

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

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