Coder Social home page Coder Social logo

slidertabs's Introduction

jQuery SliderTabs

SliderTabs is a flexible jQuery plugin for sliding tabs.

Why?

The goal of SliderTabs isn't to pollute the jQuery world with another tabs plugin but to create the possibility to build tabs, slideshows, featured content sliders, and more with one plugin. I hope this will be the last plugin you'll need to create slider type widgets. It's a pretty new project so please let me know of any bugs or suggestions on the issues page!

Features

  • Fully customizable with CSS
  • Multiple panel transition effects
  • Auto height adjustment
  • Responsive design to spontaneous size changes
  • Multiple instances
  • Cross browser compatible
  • Autoplay
  • Mousewheel integration

To do

  • Vertical tabs
  • AJAX loading

Setup

Only 3 files are required to use SliderTabs. One of which is jQuery so in the <head> section of your website, include the jQuery and SliderTabs scripts

<script src="http://code.jquery.com/jquery.min.js"></script> <script src="jquery.sliderTabs.min.js"></script>

As well as the jquery.sliderTabs.css stylesheet included in the styles folder

<link rel="stylesheet" href="styles/jquery.sliderTabs.min.css">

Now you're ready to build your first SliderTab!

Usage

More Examples

SliderTabs is pretty easy to use. First create a <div> element with a <ul> containing x amount of tabs, and x <div> elements after that as the associated panels. Note that the href attribute of the tab links must be of the format #Id-of-panel-div to link tabs to their content panels. The complete HTML markup should look similar to below.

<div id="mySliderTabs">
      <ul>
        <li><a href="#theOffice">The Office</a></li>
        <li><a href="#parks">Parks and Recreation</a></li>
        <li><a href="#southPark">South Park</a></li>
      </ul>
      <div id="theOffice">
        <h3>Info about The Office</h3>
        <p>Aoapsinasof asghais fnasof ws9ufh isujn asiufhasiufasdf aoisufd asfdhasifd usdhf saiudfh</p>
        <p>Aoapsinasof asghais fnasof ws9ufh isujn asiufhasiufasdf aoisufd asfdhasifd usdhf saiudfh</p>
        <p>Aoapsinasof asghais fnasof ws9ufh isujn asiufhasiufasdf aoisufd asfdhasifd usdhf saiudfh</p>
      </div>
      <div id="parks">
        <h3>Info about Parks and Recreation</h3>
        <p>Aoapsinasof asghais fnasof ws9ufh isujn asiufhasiufasdf aoisufd asfdhasifd usdhf saiudfh</p>
      </div>
      <div id="southPark">
        <h3>Info about South Park</h3>
        <p>Aoapsinasof asghais fnasof ws9ufh isujn asiufhasiufasdf aoisufd asfdhasifd usdhf saiudfh</p>
      </div>
  </div>

Then call sliderTabs() on the div you just created like below.

$("#mySliderTabs").sliderTabs();

View all options.

slidertabs's People

Contributors

lopatin avatar designerjason avatar

Watchers

James Cloos avatar Norbert Kránitz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.