jQuery plugin that allows to use neat CSS3 animated tabs
$ bower install hvst.toggle
jQuery
- Chrome
- Firefox
- Safari
- IE8+
##Usage
-
Include hvst.toggle.js and hvst.toggle.css in your page:
<html> <head> <link rel="stylesheet" href="bower_components/hvst.toggle/dist/css/hvst.toggle.css" /> </head> <body> <!-- page's content --> <div class="tabs"> <a class="hvst-toggle-active">Active Item</a> <a>Other Item</a> </div> <script src="bower_components/hvst.toggle/dist/hvst.toggle.js"></script> </body> </html>
-
Initialize hvst.toggle
$('div.tabs').hvstToggle();
###API
-
$.hvstToggle('destroy')
Removes all bindings and generated DOM
-
$.hvstToggle('refresh')
Re-run the active item animation