jquery.scrolltabs.psk

2.1.1 • Public • Published

jQuery-ScrollTabs

A JQuery highly configurable plugin to handle scrolling tabs horizontally when not enough space is available. This is great for navigation in context of responsive layouts. Additionally, there's nearly infinite ways to configure the appearance using your own CSS or the available Options and API calls for changing the contents on-the-fly!

Demo

View a live demo of jQuery-ScrollTabs in action!

http://joshreed.github.io/jQuery-ScrollTabs/

Usage

At it's most basic:

$('#tabSet').scrollTabs();

And to show the options available:

 $('#tabSet').scrollTabs({
    scroll_distance: 350,        // Pixel width for how far to scroll with each single-click
    scroll_duration: 350,        // Milliseconds for how long to animate the scroll
    left_arrow_size: 26,         // Width of the left arrow (if you choose to customize this)
    right_arrow_size: 26,        // Width of the right arrow (if you choose to customize this)
    click_callback: function(e){
      // This shows the default callback, which will redirect the page based
      // on the 'rel' attribute.
      var val = $(this).attr('rel');
      if(val){
        window.location.href = val;
      }
    }
  });

Documentation

For more information or detailed usage instructions, please refer to the link below.

http://joshreed.github.io/jQuery-ScrollTabs/documentation.html

Also, the Examples provide a guide of how to structure your HTML, and some key JavaScript API calls, should you be interested in dynamically changing the tab set's contents.

http://joshreed.github.io/jQuery-ScrollTabs/index.html#examples

Package Sidebar

Install

npm i jquery.scrolltabs.psk

Weekly Downloads

14

Version

2.1.1

License

none

Unpacked Size

1.55 MB

Total Files

28

Last publish

Collaborators

  • programmerpsk