Tiny jQuery plugin making tabs from simple unordered lists. Licensed under the MIT License (https://opensource.org/licenses/MIT)
$(function(){
$('#tabs').sTabs({animate: true});
});
-
startWith (int; default: 1)
Which tab should be activated as first. -
eventType (string; default: 'click')
Event to trigger changing tabs. Must be a validjQuery.bind()
event type. -
followTarget (bool; default: true)
Should the tab referenced bylocation.hash
be activated on page load? If enabled, also updates the location.hash viahistory.pushState
. -
animate (bool; default: false)
Add fadeIn animation when changing tabs. -
duration (int; default: 300)
Duration of animation in milliseconds. -
cycle (bool; default: false)
Automatically cycle through tabs. -
interval (int; default: 5000)
Cycle interval in miliseconds.