html5響應式圖標導航菜單樣式點擊圖標導航選項卡切換效果



220 879 294



特效描述:響應式圖標導航 菜單樣式 選項卡切換,

代碼結構

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

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

老夫子电子