jQuery彩色tab选项卡动画特效



60 239 80



特效描述: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

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