html5响应式图标导航菜单样式点击图标导航选项卡切换效果



205 819 274



特效描述:响应式图标导航 菜单样式 选项卡切换,

代码结构

1. 引入CSS

<link rel="stylesheet" type="text/css" href="css/normalize.css" />
<link rel="stylesheet" type="text/css" href="css/demo.css" />
<link rel="stylesheet" type="text/css" href="css/tabs.css" />
<link rel="stylesheet" type="text/css" href="css/tabstyles.css" />

2. 引入JS

<script src="js/modernizr.custom.js"></script>
<script type="text/javascript" src="js/cbpFWTabs.js"></script>

3. HTML代码

<div class="container">
	<section>
		<div class="tabs tabs-style-bar">
			<nav>
				<ul>
					<li><a href="#section-bar-1" class="icon icon-home"><span>Home</span></a></li>
					<li><a href="#section-bar-2" class="icon icon-box"><span>Archive</span></a></li>
					<li><a href="#section-bar-3" class="icon icon-display"><span>Analytics</span></a></li>
					<li><a href="#section-bar-4" class="icon icon-upload"><span>Upload</span></a></li>
					<li><a href="#section-bar-5" class="icon icon-tools"><span>Settings</span></a></li>
				</ul>
			</nav>
			<div class="content-wrap">
				<section id="section-bar-1"><p>1</p></section>
				<section id="section-bar-2"><p>2</p></section>
				<section id="section-bar-3"><p>3</p></section>
				<section id="section-bar-4"><p>4</p></section>
				<section id="section-bar-5"><p>5</p></section>
			</div><!-- /content -->
		</div><!-- /tabs -->
	</section>
	<section>
		<div class="tabs tabs-style-iconbox">
			<nav>
				<ul>
					<li><a href="#section-iconbox-1" class="icon icon-home"><span>Home</span></a></li>
					<li><a href="#section-iconbox-2" class="icon icon-gift"><span>Deals</span></a></li>
					<li><a href="#section-iconbox-3" class="icon icon-upload"><span>Upload</span></a></li>
					<li><a href="#section-iconbox-4" class="icon icon-coffee"><span>Work</span></a></li>
					<li><a href="#section-iconbox-5" class="icon icon-config"><span>Settings</span></a></li>
				</ul>
			</nav>
			<div class="content-wrap">
				<section id="section-iconbox-1"><p>1</p></section>
				<section id="section-iconbox-2"><p>2</p></section>
				<section id="section-iconbox-3"><p>3</p></section>
				<section id="section-iconbox-4"><p>4</p></section>
				<section id="section-iconbox-5"><p>5</p></section>
			</div><!-- /content -->
		</div><!-- /tabs -->
	</section>
	<section>
		<div class="tabs tabs-style-underline">
			<nav>
				<ul>
					<li><a href="#section-underline-1" class="icon icon-home"><span>Home</span></a></li>
					<li><a href="#section-underline-2" class="icon icon-gift"><span>Deals</span></a></li>
					<li><a href="#section-underline-3" class="icon icon-upload"><span>Upload</span></a></li>
					<li><a href="#section-underline-4" class="icon icon-coffee"><span>Work</span></a></li>
					<li><a href="#section-underline-5" class="icon icon-config"><span>Settings</span></a></li>
				</ul>
			</nav>
			<div class="content-wrap">
				<section id="section-underline-1"><p>1</p></section>
				<section id="section-underline-2"><p>2</p></section>
				<section id="section-underline-3"><p>3</p></section>
				<section id="section-underline-4"><p>4</p></section>
				<section id="section-underline-5"><p>5</p></section>
			</div><!-- /content -->
		</div><!-- /tabs -->
	</section>
	<section>
		<div class="tabs tabs-style-linetriangle">
			<nav>
				<ul>
					<li><a href="#section-linetriangle-1"><span>All Products</span></a></li>
					<li><a href="#section-linetriangle-2"><span>Electronics</span></a></li>
					<li><a href="#section-linetriangle-3"><span>Clothing</span></a></li>
					<li><a href="#section-linetriangle-4"><span>Multimedia</span></a></li>
					<li><a href="#section-linetriangle-5"><span>Toys</span></a></li>
				</ul>
			</nav>
			<div class="content-wrap">
				<section id="section-linetriangle-1"><p>1</p></section>
				<section id="section-linetriangle-2"><p>2</p></section>
				<section id="section-linetriangle-3"><p>3</p></section>
				<section id="section-linetriangle-4"><p>4</p></section>
				<section id="section-linetriangle-5"><p>5</p></section>
			</div><!-- /content -->
		</div><!-- /tabs -->
	</section>
	<section>
		<div class="tabs tabs-style-topline">
			<nav>
				<ul>
					<li><a href="#section-topline-1" class="icon icon-home"><span>Home</span></a></li>
					<li><a href="#section-topline-2" class="icon icon-gift"><span>Deals</span></a></li>
					<li><a href="#section-topline-3" class="icon icon-upload"><span>Upload</span></a></li>
					<li><a href="#section-topline-4" class="icon icon-coffee"><span>Work</span></a></li>
					<li><a href="#section-topline-5" class="icon icon-config"><span>Settings</span></a></li>
				</ul>
			</nav>
			<div class="content-wrap">
				<section id="section-topline-1"><p>1</p></section>
				<section id="section-topline-2"><p>2</p></section>
				<section id="section-topline-3"><p>3</p></section>
				<section id="section-topline-4"><p>4</p></section>
				<section id="section-topline-5"><p>5</p></section>
			</div><!-- /content -->
		</div><!-- /tabs -->
	</section>
	<section>
		<div class="tabs tabs-style-iconfall">
			<nav>
				<ul>
					<li><a href="#section-iconfall-1" class="icon icon-home"><span>Home</span></a></li>
					<li><a href="#section-iconfall-2" class="icon icon-gift"><span>Deals</span></a></li>
					<li><a href="#section-iconfall-3" class="icon icon-upload"><span>Upload</span></a></li>
					<li><a href="#section-iconfall-4" class="icon icon-coffee"><span>Work</span></a></li>
					<li><a href="#section-iconfall-5" class="icon icon-config"><span>Settings</span></a></li>
				</ul>
			</nav>
			<div class="content-wrap">
				<section id="section-iconfall-1"><p>1</p></section>
				<section id="section-iconfall-2"><p>2</p></section>
				<section id="section-iconfall-3"><p>3</p></section>
				<section id="section-iconfall-4"><p>4</p></section>
				<section id="section-iconfall-5"><p>5</p></section>
			</div><!-- /content -->
		</div><!-- /tabs -->
		<p>Re-created from <a href="http://vintageproductions.eu/grid/interactivity/">Vintage Productions</a></p>
	</section>
	<section>
		<div class="tabs tabs-style-linemove">
			<nav>
				<ul>
					<li><a href="#section-linemove-1" class="icon icon-home"><span>Home</span></a></li>
					<li><a href="#section-linemove-2" class="icon icon-box"><span>Archive</span></a></li>
					<li><a href="#section-linemove-3" class="icon icon-display"><span>Analytics</span></a></li>
					<li><a href="#section-linemove-4" class="icon icon-upload"><span>Upload</span></a></li>
					<li><a href="#section-linemove-5" class="icon icon-tools"><span>Settings</span></a></li>
				</ul>
			</nav>
			<div class="content-wrap">
				<section id="section-linemove-1"><p>1</p></section>
				<section id="section-linemove-2"><p>2</p></section>
				<section id="section-linemove-3"><p>3</p></section>
				<section id="section-linemove-4"><p>4</p></section>
				<section id="section-linemove-5"><p>5</p></section>
			</div><!-- /content -->
		</div><!-- /tabs -->
	</section>
	<section>
		<div class="tabs tabs-style-line">
			<nav>
				<ul>
					<li><a href="#section-line-1"><span>Our Controls</span></a></li>
					<li><a href="#section-line-2"><span>Sony Playstation 4</span></a></li>
					<li><a href="#section-line-3"><span>Microsoft Xbox One</span></a></li>
					<li><a href="#section-line-4"><span>Nintendo Wii U</span></a></li>
					<li><a href="#section-line-5"><span>Microconsoles</span></a></li>
				</ul>
			</nav>
			<div class="content-wrap">
				<section id="section-line-1"><p>1</p></section>
				<section id="section-line-2"><p>2</p></section>
				<section id="section-line-3"><p>3</p></section>
				<section id="section-line-4"><p>4</p></section>
				<section id="section-line-5"><p>5</p></section>
			</div><!-- /content -->
		</div><!-- /tabs -->
	</section>
	<section>
		<div class="tabs tabs-style-circle">
			<nav>
				<ul>
					<li><a href="#section-circle-1" class="icon icon-plug"><span>Connect</span></a></li>
					<li><a href="#section-circle-2" class="icon icon-gift"><span>Gifts</span></a></li>
					<li><a href="#section-circle-3" class="icon icon-box"><span>Boxes</span></a></li>
					<li><a href="#section-circle-4" class="icon icon-date"><span>Prints</span></a></li>
					<li><a href="#section-circle-5" class="icon icon-plane"><span>Fun</span></a></li>
				</ul>
			</nav>
			<div class="content-wrap">
				<section id="section-circle-1"><p>1</p></section>
				<section id="section-circle-2"><p>2</p></section>
				<section id="section-circle-3"><p>3</p></section>
				<section id="section-circle-4"><p>4</p></section>
				<section id="section-circle-5"><p>5</p></section>
			</div><!-- /content -->
		</div><!-- /tabs -->
	</section>
	<section>
		<div class="tabs tabs-style-shape">
			<nav>
				<ul>
					<li>
						<a href="#section-shape-1">
							<svg viewBox="0 0 80 60" preserveAspectRatio="none"><use xlink:href="#tabshape"></use></svg>
							<span>Home</span>								</a>							</li>
					<li>
						<a href="#section-shape-2">
							<svg viewBox="0 0 80 60" preserveAspectRatio="none"><use xlink:href="#tabshape"></use></svg>
							<svg viewBox="0 0 80 60" preserveAspectRatio="none"><use xlink:href="#tabshape"></use></svg>
							<span>Design</span>								</a>							</li>
					<li>
						<a href="#section-shape-3">
							<svg viewBox="0 0 80 60" preserveAspectRatio="none"><use xlink:href="#tabshape"></use></svg>
							<svg viewBox="0 0 80 60" preserveAspectRatio="none"><use xlink:href="#tabshape"></use></svg>
							<span>Work</span>								</a>							</li>
					<li>
						<a href="#section-shape-4">
							<svg viewBox="0 0 80 60" preserveAspectRatio="none"><use xlink:href="#tabshape"></use></svg>
							<svg viewBox="0 0 80 60" preserveAspectRatio="none"><use xlink:href="#tabshape"></use></svg>
							<span>Portfolio</span>								</a>							</li>
					<li>
						<a href="#section-shape-5">
							<svg viewBox="0 0 80 60" preserveAspectRatio="none"><use xlink:href="#tabshape"></use></svg>
							<span>Contact</span>								</a>							</li>
				</ul>
			</nav>
			<div class="content-wrap">
				<section id="section-shape-1"><p>1</p></section>
				<section id="section-shape-2"><p>2</p></section>
				<section id="section-shape-3"><p>3</p></section>
				<section id="section-shape-4"><p>4</p></section>
				<section id="section-shape-5"><p>5</p></section>
			</div><!-- /content -->
		</div><!-- /tabs -->
	</section>
	<section>
		<div class="tabs tabs-style-linebox">
			<nav>
				<ul>
					<li><a href="#section-linebox-5"><span>Airline</span></a></li>
					<li><a href="#section-linebox-4"><span>Schedule</span></a></li>
					<li><a href="#section-linebox-2"><span>Deals</span></a></li>
					<li><a href="#section-linebox-3"><span>Drinks</span></a></li>
					<li><a href="#section-linebox-5"><span>Settings</span></a></li>
				</ul>
			</nav>
			<div class="content-wrap">
				<section id="section-linebox-1"><p>1</p></section>
				<section id="section-linebox-2"><p>2</p></section>
				<section id="section-linebox-3"><p>3</p></section>
				<section id="section-linebox-4"><p>4</p></section>
				<section id="section-linebox-5"><p>5</p></section>
			</div><!-- /content -->
		</div><!-- /tabs -->
	</section>
	<section>
		<div class="tabs tabs-style-flip">
			<nav>
				<ul>
					<li><a href="#section-flip-5" class="icon icon-plane"><span>Airline</span></a></li>
					<li><a href="#section-flip-4" class="icon icon-date"><span>Schedule</span></a></li>
					<li><a href="#section-flip-2" class="icon icon-gift"><span>Deals</span></a></li>
					<li><a href="#section-flip-3" class="icon icon-coffee"><span>Drinks</span></a></li>
					<li><a href="#section-flip-5" class="icon icon-tools"><span>Settings</span></a></li>
				</ul>
			</nav>
			<div class="content-wrap">
				<section id="section-flip-1"><p>1</p></section>
				<section id="section-flip-2"><p>2</p></section>
				<section id="section-flip-3"><p>3</p></section>
				<section id="section-flip-4"><p>4</p></section>
				<section id="section-flip-5"><p>5</p></section>
			</div><!-- /content -->
		</div><!-- /tabs -->
	</section>
	<section>
		<div class="tabs tabs-style-circlefill">
			<nav>
				<ul>
					<li><a href="#section-circlefill-1" class="icon icon-plug"><span>Connect</span></a></li>
					<li><a href="#section-circlefill-2" class="icon icon-gift"><span>Gifts</span></a></li>
					<li><a href="#section-circlefill-3" class="icon icon-box"><span>Boxes</span></a></li>
					<li><a href="#section-circlefill-4" class="icon icon-date"><span>Prints</span></a></li>
					<li><a href="#section-circlefill-5" class="icon icon-plane"><span>Fun</span></a></li>
				</ul>
			</nav>
			<div class="content-wrap">
				<section id="section-circlefill-1"><p>1</p></section>
				<section id="section-circlefill-2"><p>2</p></section>
				<section id="section-circlefill-3"><p>3</p></section>
				<section id="section-circlefill-4"><p>4</p></section>
				<section id="section-circlefill-5"><p>5</p></section>
			</div><!-- /content -->
		</div><!-- /tabs -->
	</section>
	<section>
		<div class="tabs tabs-style-tzoid">
			<nav>
				<ul>
					<li><a href="#section-tzoid-1" class="icon icon-home"><span>Home</span></a></li>
					<li><a href="#section-tzoid-2" class="icon icon-box"><span>Archive</span></a></li>
					<li><a href="#section-tzoid-3" class="icon icon-upload"><span>Upload</span></a></li>
					<li><a href="#section-tzoid-4" class="icon icon-display"><span>Analytics</span></a></li>
					<li><a href="#section-tzoid-5" class="icon icon-tools"><span>Settings</span></a></li>
				</ul>
			</nav>
			<div class="content-wrap">
				<section id="section-tzoid-1"><p>1</p></section>
				<section id="section-tzoid-2"><p>2</p></section>
				<section id="section-tzoid-3"><p>3</p></section>
				<section id="section-tzoid-4"><p>4</p></section>
				<section id="section-tzoid-5"><p>5</p></section>
			</div><!-- /content -->
		</div><!-- /tabs -->
		<p>Technique from <a href="http://vintageproductions.eu/grid/interactivity/">Slanted tabs with CSS 3D transforms</a> by Lea Verou</p>
	</section>
	<section>
		<div class="tabs tabs-style-fillup">
			<nav>
				<ul>
					<li><a href="#section-fillup-1" class="icon icon-home"><span>Home</span></a></li>
					<li><a href="#section-fillup-2" class="icon icon-gift"><span>Deals</span></a></li>
					<li><a href="#section-fillup-3" class="icon icon-upload"><span>Upload</span></a></li>
					<li><a href="#section-fillup-4" class="icon icon-coffee"><span>Work</span></a></li>
					<li><a href="#section-fillup-5" class="icon icon-config"><span>Settings</span></a></li>
				</ul>
			</nav>
			<div class="content-wrap">
				<section id="section-fillup-1"><p>1</p></section>
				<section id="section-fillup-2"><p>2</p></section>
				<section id="section-fillup-3"><p>3</p></section>
				<section id="section-fillup-4"><p>4</p></section>
				<section id="section-fillup-5"><p>5</p></section>
			</div><!-- /content -->
		</div><!-- /tabs -->
	</section>
</div><!-- /container -->
<script type="text/javascript">
(function() {
	[].slice.call( document.querySelectorAll( '.tabs' ) ).forEach( function( el ) {
		new CBPFWTabs( el );
	});
})();
</script>



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


热门标签: flash导航菜单 flash导航条 flash导航 flash菜单 flash下拉菜单 flash下拉导航菜单 导航切换 菜单切换 浮动菜单 浮动导航 收缩菜单 收缩导航 右键菜单 滑动导航菜单 滑动导航 滑动菜单 滚动导航菜单 滚动菜单 滚动导航 h5动画导航 h5动画菜单 html5动画导航 html5动画菜单 滚动切换 滚动条切换 滑动选项卡 滑动切换 滑动手风琴 选项卡切换 选项卡 切换 tab切换 页面切换 选项卡插件 切换插件 导航菜单 导航条 菜单栏 导航栏 分类导航 响应式导航条 响应式导航 导航切换 菜单切换 固定导航 固定菜单

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

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

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