Skip to content

tr3intaydos/tabulous.js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

tabulous.js Original by @aaronlumsden Extended by @Tr3intaydos

===========

A jQuery tabs module for todays web!

Documentation

Tabulous.js can be used with any contents you choose in the tabs and it couldn't be more simpler to use.

..:: Demo

For a demo visit http://git.aaronlumsden.com/tabulous.js/

..:: Getting Started

Include the relevant files

Firstly include jQuery and the tabulous.css and tabulous.js files. Place these before <head> section

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="tabulous.js"></script>
<script type="text/javascript" src="js.js"></script>
Create the tabs
  <div id="tabs">
  	<ul>
		<li><a href="#tabs-1" title="">Tab 1</a></li>
		<li><a href="#tabs-2" title="">Tab 2</a></li>
		<li><a href="#tabs-3" title="">Tab 3</a></li>
	</ul>
	<div id="tabs_container">
		<div id="tabs-1" class="tab-content">
			<!--tab content-->	
		</div>
		<div id="tabs-2" class="tab-content">
			<!--tab content-->
		</div>
		<div id="tabs-3" class="tab-content">
			<!--tab content-->
		</div>
	</div>
  </div>
Initiate the plugin

Once you have created your tabs you will need to initiate the plugin.

At its most basic level you can initiate the plugin like:

$(document).ready(function ($) {
	$('#tabs').tabulous();
});

If you want to initiate the plugin with options then you can do so like:

$('#tabs').tabulous({
	effect: 'scale'
});

..:: Options

Variable Default Value Description Valid Options
effect scale The effect to use for the transition scale / slideLeft / scaleUp / flip
target_class tab-content The class of the tabs content tab-content
mainDiv #tabs_container The id of the div with the tabs contents #tabs_container
lookupTable Array An array with the css's transitions classes scale: ["hidescale", "showscale"], slideLeft: ["hideleft", "showleft"], scaleUp: ["hidescaleup", "hidescaleup"], flip: ["hideflip", "showflip"]

About

A jQuery tabs module for todays web!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 40.2%
  • JavaScript 31.7%
  • HTML 28.1%