jQuery彩色tab選項卡動畫特效



64 254 85



特效描述:jQuery tab選項卡動畫,jQuery彩色tab選項卡動畫特效

代碼結構

1. 引入CSS

<link type="text/css" rel="stylesheet" href="css/reset.css">
<link type="text/css" rel="stylesheet" href="css/demo.css">
<link type="text/css" rel="stylesheet" href="css/colorfulTab.min.css">

2. 引入JS

<script src="js/jquery-1.11.0.min.js" type="text/javascript"></script>
<script type="text/javascript" src="js/colorfulTab.min.js"></script>

3. HTML代碼

<div class="clr-title">
	<h1>Default</h1><code>$('#example-id').colorfulTab();</code>
  </div>
  <!-- Default -->
  <div class="colorful-tab-wrapper" id="colorful">
	<ul class="colorful-tab-menu">
	  <li class="colorful-tab-menu-item active" tab-color="#00A566"><a href="#clr-0">SCSS</a></li>
	  <li class="colorful-tab-menu-item" tab-color="#8021D3"><a href="#clr-1">Pug</a></li>
	  <li class="colorful-tab-menu-item" tab-color="#C9003C"><a href="#clr-2">Gulp</a></li>
	  <li class="colorful-tab-menu-item" tab-color="#E54400"><a href="#clr-3">HTML5</a></li>
	  <li class="colorful-tab-menu-item" tab-color="#445370"><a href="#clr-4">jQuery</a></li>
	</ul>
	<div class="colorful-tab-container">  
	  <div class="colorful-tab-content active" id="clr-0">  
		<p>Bitters cronut butcher, +1 dreamcatcher readymade fingerstache cray synth bespoke godard. Street art franzen polaroid gentrify. Lo-fi typewriter banh mi, lomo shabby chic asymmetrical street art craft beer narwhal heirloom. Gluten-free fixie readymade sartorial dreamcatcher godard DIY cold-pressed meggings distillery. Gochujang hoodie viral, yuccie taxidermy squid pork belly. Yr locavore pinterest pork belly thundercats heirloom, forage disrupt. Gochujang dreamcatcher kinfolk, kale chips pabst vegan green juice direct trade small batch vice lumbersexual farm-to-table art party chartreuse godard.</p>
	  </div>
	  <div class="colorful-tab-content" id="clr-1"> 
		<p>Hoodie four loko letterpress freegan skateboard sartorial, polaroid forage ramps 8-bit direct trade. Chia chicharrones humblebrag 8-bit. Intelligentsia semiotics 8-bit banjo poutine chillwave. +1 small batch vegan, truffaut crucifix taxidermy twee banjo meggings blog scenester ugh. Keffiyeh readymade art party cold-pressed. Heirloom pork belly photo booth scenester cold-pressed neutra. Vice actually shoreditch viral poutine, vinyl fanny pack retro etsy kickstarter.</p>
	  </div>
	  <div class="colorful-tab-content" id="clr-2"> 
		<p>Single-origin coffee tilde craft beer organic wolf. Plaid kickstarter vegan roof party vice, try-hard taxidermy truffaut small batch. PBR&amp;B butcher helvetica, green juice craft beer kickstarter skateboard. +1 selvage VHS gastropub slow-carb, twee vegan helvetica farm-to-table marfa seitan letterpress narwhal squid cliche. Meggings fap leggings slow-carb kickstarter, health goth gastropub hashtag blue bottle photo booth literally PBR&amp;B iPhone ugh. Organic scenester truffaut pug, pitchfork man bun artisan brooklyn photo booth. Biodiesel farm-to-table 8-bit direct trade humblebrag, man braid blue bottle.</p>
	  </div>
	  <div class="colorful-tab-content" id="clr-3"> 
		<p>Austin artisan cornhole, microdosing messenger bag neutra tilde ramps chambray knausgaard. Messenger bag helvetica dreamcatcher migas, pork belly cold-pressed actually schlitz viral green juice vegan. XOXO mustache butcher, artisan shoreditch beard seitan lo-fi locavore banh mi skateboard organic. Sriracha ennui synth, viral chartreuse gentrify umami. Beard pour-over single-origin coffee, direct trade post-ironic keytar roof party twee shoreditch. Godard heirloom wolf, pabst pickled offal shoreditch. Kogi gentrify truffaut, viral irony kickstarter tumblr pop-up kitsch jean shorts next level cold-pressed.</p>
	  </div>
	  <div class="colorful-tab-content" id="clr-4"> 
		<p>Keffiyeh tumblr street art cold-pressed jean shorts. Street art pug 3 wolf moon cronut. Bicycle rights XOXO fanny pack cliche, cardigan meh distillery art party viral fixie roof party shabby chic kinfolk ethical yr. Poutine typewriter flannel pickled, chartreuse listicle brunch portland synth godard. Selfies echo park lo-fi ramps bespoke ugh, crucifix heirloom waistcoat squid literally. Craft beer green juice yr vinyl, sriracha pork belly pop-up seitan etsy put a bird on it truffaut. Paleo chartreuse drinking vinegar, try-hard heirloom letterpress 90's hella godard fashion axe man bun VHS pour-over farm-to-table.</p>
	  </div>
	</div>
  </div>
  <!-- Default -->
  <div class="clr-title">
	<h1>Elliptic</h1>
	<h2>$('#example-id').colorfulTab({<u>theme</u>:'elliptic'});</h2>
  </div>
  <!-- Elliptic -->
  <div class="colorful-tab-wrapper" id="colorful-elliptic">
	<ul class="colorful-tab-menu">
	  <li class="colorful-tab-menu-item active" tab-color="#C9003C"><a href="#elp-0">SCSS</a></li>
	  <li class="colorful-tab-menu-item" tab-color="#00A566"><a href="#elp-1">Pug</a></li>
	  <li class="colorful-tab-menu-item" tab-color="#8021D3"><a href="#elp-2">Gulp</a></li>
	  <li class="colorful-tab-menu-item" tab-color="#E54400"><a href="#elp-3">HTML5</a></li>
	  <li class="colorful-tab-menu-item" tab-color="#445370"><a href="#elp-4">jQuery</a></li>
	</ul>
	<div class="colorful-tab-container">  
	  <div class="colorful-tab-content active" id="elp-0">  
		<p>Bitters cronut butcher, +1 dreamcatcher readymade fingerstache cray synth bespoke godard. Street art franzen polaroid gentrify. Lo-fi typewriter banh mi, lomo shabby chic asymmetrical street art craft beer narwhal heirloom. Gluten-free fixie readymade sartorial dreamcatcher godard DIY cold-pressed meggings distillery. Gochujang hoodie viral, yuccie taxidermy squid pork belly. Yr locavore pinterest pork belly thundercats heirloom, forage disrupt. Gochujang dreamcatcher kinfolk, kale chips pabst vegan green juice direct trade small batch vice lumbersexual farm-to-table art party chartreuse godard.</p>
	  </div>
	  <div class="colorful-tab-content" id="elp-1"> 
		<p>Hoodie four loko letterpress freegan skateboard sartorial, polaroid forage ramps 8-bit direct trade. Chia chicharrones humblebrag 8-bit. Intelligentsia semiotics 8-bit banjo poutine chillwave. +1 small batch vegan, truffaut crucifix taxidermy twee banjo meggings blog scenester ugh. Keffiyeh readymade art party cold-pressed. Heirloom pork belly photo booth scenester cold-pressed neutra. Vice actually shoreditch viral poutine, vinyl fanny pack retro etsy kickstarter.</p>
	  </div>
	  <div class="colorful-tab-content" id="elp-2"> 
		<p>Single-origin coffee tilde craft beer organic wolf. Plaid kickstarter vegan roof party vice, try-hard taxidermy truffaut small batch. PBR&amp;B butcher helvetica, green juice craft beer kickstarter skateboard. +1 selvage VHS gastropub slow-carb, twee vegan helvetica farm-to-table marfa seitan letterpress narwhal squid cliche. Meggings fap leggings slow-carb kickstarter, health goth gastropub hashtag blue bottle photo booth literally PBR&amp;B iPhone ugh. Organic scenester truffaut pug, pitchfork man bun artisan brooklyn photo booth. Biodiesel farm-to-table 8-bit direct trade humblebrag, man braid blue bottle.</p>
	  </div>
	  <div class="colorful-tab-content" id="elp-3"> 
		<p>Austin artisan cornhole, microdosing messenger bag neutra tilde ramps chambray knausgaard. Messenger bag helvetica dreamcatcher migas, pork belly cold-pressed actually schlitz viral green juice vegan. XOXO mustache butcher, artisan shoreditch beard seitan lo-fi locavore banh mi skateboard organic. Sriracha ennui synth, viral chartreuse gentrify umami. Beard pour-over single-origin coffee, direct trade post-ironic keytar roof party twee shoreditch. Godard heirloom wolf, pabst pickled offal shoreditch. Kogi gentrify truffaut, viral irony kickstarter tumblr pop-up kitsch jean shorts next level cold-pressed.</p>
	  </div>
	  <div class="colorful-tab-content" id="elp-4"> 
		<p>Keffiyeh tumblr street art cold-pressed jean shorts. Street art pug 3 wolf moon cronut. Bicycle rights XOXO fanny pack cliche, cardigan meh distillery art party viral fixie roof party shabby chic kinfolk ethical yr. Poutine typewriter flannel pickled, chartreuse listicle brunch portland synth godard. Selfies echo park lo-fi ramps bespoke ugh, crucifix heirloom waistcoat squid literally. Craft beer green juice yr vinyl, sriracha pork belly pop-up seitan etsy put a bird on it truffaut. Paleo chartreuse drinking vinegar, try-hard heirloom letterpress 90's hella godard fashion axe man bun VHS pour-over farm-to-table.</p>
	  </div>
	</div>
  </div>
  <!-- Elliptic -->
  <div class="clr-title">
	<h1>Flatline</h1><code>$('#example-id').colorfulTab({<u>theme</u>:'flatline'});</code>
  </div>
  <!-- Flatline -->
  <div class="colorful-tab-wrapper" id="colorful-flatline">
	<ul class="colorful-tab-menu">
	  <li class="colorful-tab-menu-item active" tab-color="#8021D3"><a href="#fl-0">SCSS</a></li>
	  <li class="colorful-tab-menu-item" tab-color="#00A566"><a href="#fl-1">Pug</a></li>
	  <li class="colorful-tab-menu-item" tab-color="#C9003C"><a href="#fl-2">Gulp</a></li>
	  <li class="colorful-tab-menu-item" tab-color="#E54400"><a href="#fl-3">HTML5</a></li>
	  <li class="colorful-tab-menu-item" tab-color="#445370"><a href="#fl-4">jQuery</a></li>
	</ul>
	<div class="colorful-tab-container">  
	  <div class="colorful-tab-content active" id="fl-0">  
		<p>Bitters cronut butcher, +1 dreamcatcher readymade fingerstache cray synth bespoke godard. Street art franzen polaroid gentrify. Lo-fi typewriter banh mi, lomo shabby chic asymmetrical street art craft beer narwhal heirloom. Gluten-free fixie readymade sartorial dreamcatcher godard DIY cold-pressed meggings distillery. Gochujang hoodie viral, yuccie taxidermy squid pork belly. Yr locavore pinterest pork belly thundercats heirloom, forage disrupt. Gochujang dreamcatcher kinfolk, kale chips pabst vegan green juice direct trade small batch vice lumbersexual farm-to-table art party chartreuse godard.</p>
	  </div>
	  <div class="colorful-tab-content" id="fl-1"> 
		<p>Hoodie four loko letterpress freegan skateboard sartorial, polaroid forage ramps 8-bit direct trade. Chia chicharrones humblebrag 8-bit. Intelligentsia semiotics 8-bit banjo poutine chillwave. +1 small batch vegan, truffaut crucifix taxidermy twee banjo meggings blog scenester ugh. Keffiyeh readymade art party cold-pressed. Heirloom pork belly photo booth scenester cold-pressed neutra. Vice actually shoreditch viral poutine, vinyl fanny pack retro etsy kickstarter.</p>
	  </div>
	  <div class="colorful-tab-content" id="fl-2"> 
		<p>Single-origin coffee tilde craft beer organic wolf. Plaid kickstarter vegan roof party vice, try-hard taxidermy truffaut small batch. PBR&amp;B butcher helvetica, green juice craft beer kickstarter skateboard. +1 selvage VHS gastropub slow-carb, twee vegan helvetica farm-to-table marfa seitan letterpress narwhal squid cliche. Meggings fap leggings slow-carb kickstarter, health goth gastropub hashtag blue bottle photo booth literally PBR&amp;B iPhone ugh. Organic scenester truffaut pug, pitchfork man bun artisan brooklyn photo booth. Biodiesel farm-to-table 8-bit direct trade humblebrag, man braid blue bottle.</p>
	  </div>
	  <div class="colorful-tab-content" id="fl-3"> 
		<p>Austin artisan cornhole, microdosing messenger bag neutra tilde ramps chambray knausgaard. Messenger bag helvetica dreamcatcher migas, pork belly cold-pressed actually schlitz viral green juice vegan. XOXO mustache butcher, artisan shoreditch beard seitan lo-fi locavore banh mi skateboard organic. Sriracha ennui synth, viral chartreuse gentrify umami. Beard pour-over single-origin coffee, direct trade post-ironic keytar roof party twee shoreditch. Godard heirloom wolf, pabst pickled offal shoreditch. Kogi gentrify truffaut, viral irony kickstarter tumblr pop-up kitsch jean shorts next level cold-pressed.</p>
	  </div>
	  <div class="colorful-tab-content" id="fl-4"> 
		<p>Keffiyeh tumblr street art cold-pressed jean shorts. Street art pug 3 wolf moon cronut. Bicycle rights XOXO fanny pack cliche, cardigan meh distillery art party viral fixie roof party shabby chic kinfolk ethical yr. Poutine typewriter flannel pickled, chartreuse listicle brunch portland synth godard. Selfies echo park lo-fi ramps bespoke ugh, crucifix heirloom waistcoat squid literally. Craft beer green juice yr vinyl, sriracha pork belly pop-up seitan etsy put a bird on it truffaut. Paleo chartreuse drinking vinegar, try-hard heirloom letterpress 90's hella godard fashion axe man bun VHS pour-over farm-to-table.</p>
	  </div>
	</div>
  </div>
  <!-- Flatline -->
  <div class="clr-title">
	<h1>Background Image</h1><code>$('#example-id').colorfulTab({<br/><u>theme</u>:'flatline',<br/><u>backgroundImage</u>:'true',<br/><u>overlayColor</u>:'true',<br/><u>overlayOpacity</u>:'0.8'<br/>});</code>
  </div>
  <!-- Background Image -->
  <div class="colorful-tab-wrapper" id="colorful-background-image">
	<ul class="colorful-tab-menu">
	  <li class="colorful-tab-menu-item active" tab-background="img/tab1.jpg"><a href="#bg-0">SCSS</a></li>
	  <li class="colorful-tab-menu-item" tab-background="img/tab2.jpg"><a href="#bg-1">Pug</a></li>
	  <li class="colorful-tab-menu-item" tab-background="img/tab3.jpg"><a href="#bg-2">Gulp</a></li>
	  <li class="colorful-tab-menu-item" tab-background="img/tab4.jpg"><a href="#bg-3">HTML5</a></li>
	  <li class="colorful-tab-menu-item" tab-background="img/tab5.jpg"><a href="#bg-4">jQuery</a></li>
	</ul>
	<div class="colorful-tab-container">  
	  <div class="colorful-tab-content active" id="bg-0">  
		<p>Bitters cronut butcher, +1 dreamcatcher readymade fingerstache cray synth bespoke godard. Street art franzen polaroid gentrify. Lo-fi typewriter banh mi, lomo shabby chic asymmetrical street art craft beer narwhal heirloom. Gluten-free fixie readymade sartorial dreamcatcher godard DIY cold-pressed meggings distillery. Gochujang hoodie viral, yuccie taxidermy squid pork belly. Yr locavore pinterest pork belly thundercats heirloom, forage disrupt. Gochujang dreamcatcher kinfolk, kale chips pabst vegan green juice direct trade small batch vice lumbersexual farm-to-table art party chartreuse godard.</p>
	  </div>
	  <div class="colorful-tab-content" id="bg-1"> 
		<p>Hoodie four loko letterpress freegan skateboard sartorial, polaroid forage ramps 8-bit direct trade. Chia chicharrones humblebrag 8-bit. Intelligentsia semiotics 8-bit banjo poutine chillwave. +1 small batch vegan, truffaut crucifix taxidermy twee banjo meggings blog scenester ugh. Keffiyeh readymade art party cold-pressed. Heirloom pork belly photo booth scenester cold-pressed neutra. Vice actually shoreditch viral poutine, vinyl fanny pack retro etsy kickstarter.</p>
	  </div>
	  <div class="colorful-tab-content" id="bg-2"> 
		<p>Single-origin coffee tilde craft beer organic wolf. Plaid kickstarter vegan roof party vice, try-hard taxidermy truffaut small batch. PBR&amp;B butcher helvetica, green juice craft beer kickstarter skateboard. +1 selvage VHS gastropub slow-carb, twee vegan helvetica farm-to-table marfa seitan letterpress narwhal squid cliche. Meggings fap leggings slow-carb kickstarter, health goth gastropub hashtag blue bottle photo booth literally PBR&amp;B iPhone ugh. Organic scenester truffaut pug, pitchfork man bun artisan brooklyn photo booth. Biodiesel farm-to-table 8-bit direct trade humblebrag, man braid blue bottle.</p>
	  </div>
	  <div class="colorful-tab-content" id="bg-3"> 
		<p>Austin artisan cornhole, microdosing messenger bag neutra tilde ramps chambray knausgaard. Messenger bag helvetica dreamcatcher migas, pork belly cold-pressed actually schlitz viral green juice vegan. XOXO mustache butcher, artisan shoreditch beard seitan lo-fi locavore banh mi skateboard organic. Sriracha ennui synth, viral chartreuse gentrify umami. Beard pour-over single-origin coffee, direct trade post-ironic keytar roof party twee shoreditch. Godard heirloom wolf, pabst pickled offal shoreditch. Kogi gentrify truffaut, viral irony kickstarter tumblr pop-up kitsch jean shorts next level cold-pressed.</p>
	  </div>
	  <div class="colorful-tab-content" id="bg-4"> 
		<p>Keffiyeh tumblr street art cold-pressed jean shorts. Street art pug 3 wolf moon cronut. Bicycle rights XOXO fanny pack cliche, cardigan meh distillery art party viral fixie roof party shabby chic kinfolk ethical yr. Poutine typewriter flannel pickled, chartreuse listicle brunch portland synth godard. Selfies echo park lo-fi ramps bespoke ugh, crucifix heirloom waistcoat squid literally. Craft beer green juice yr vinyl, sriracha pork belly pop-up seitan etsy put a bird on it truffaut. Paleo chartreuse drinking vinegar, try-hard heirloom letterpress 90's hella godard fashion axe man bun VHS pour-over farm-to-table.</p>
	  </div>
	</div>
  </div>
<script type="text/javascript">
$(document).ready(function(){
	$("#colorful").colorfulTab();    
	$("#colorful-elliptic").colorfulTab({
		theme: "elliptic"
	}); 
   $("#colorful-flatline").colorfulTab({
		theme: "flatline"
	});    
	$("#colorful-background-image").colorfulTab({
		theme: "flatline",
		backgroundImage: "true",
		overlayColor: "#002F68",
		overlayOpacity: "0.8"
	});   
});
</script>



用戶評論
大牛,別默默的看了,快登錄幫我點評一下吧!:)      登錄 | 注冊


熱門標簽: 文字疊加 文字層疊 文字收縮展開 文字收縮 文字展開 文字淡出淡進 文字淡出 文字淡進 文字翻轉 文字旋轉 文字放大縮小 文字縮放 文字大小 文字放大 文字縮小 文字變大 文字變小 文字提示框 提示文字 文字全屏 文字拖動 文字拖拽 滑動選項卡 滑動切換 滾動切換 滾動條切換 文字延遲加載 文字延遲 文字加載 h5文字動畫 h5文字邊框動畫 html5文字動畫 html5文字邊框動畫 360全景 360度全景 文字滑動 文字滑塊 文字滾動 文字無縫滾動 文字間歇滾動 文字切換 文字選項卡 選項卡切換 選項卡 切換 tab切換 頁面切換 選項卡插件 切換插件 滑動手風琴 圖片文字 文字導航菜單 文字導航 文字菜單 文字 文字插件 文字列表 選項卡自動切換
?
×
×

注冊

官方QQ群

掃描上面二維碼加微信群

官方QQ群

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

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

湖北30选5开奖结果走势图表