Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
45 lines (31 sloc) 857 Bytes

nuTabs

nuTabs - MooTools-based, transitionified switcherification!

Screenshot

How to use

JavaScript

$$('#tabs-nav a, #tabs-body li').tabify({
	transition: 'bounce:out'
});

Or

new nuTabs($$('#tabs-nav a'), $$('#tabs-body li'), {
	transition: 'bounce:out'
});

HTML

<ul id="tabs-nav">
	<li class="selected"><a href="#">Tab 1</a></li>
	<li><a href="#">Tab 2</a></li>
	<li><a href="#">Tab 3</a></li>
</ul>

<ul id="tabs-body">
	<li class="active">Content 1</li>
	<li>Content 2</li>
	<li>Content 3</li>
</ul>

Options

All options have default values assigned, hence are optional.

Version 1.0

  • transition: (mixed) the object or string of a specific transition, ie. "bounce:out"
  • navActiveClass: (str) active class name for the tabs