Coder Social home page Coder Social logo

kickass-text-slider's Introduction

Kickass Text Slider

Transform Bootstrap Tabs to A sliding Panel

First of all we need the HTML structure like Following. Wrap the ul with class of nav-tabs with a div with a class name kickassTextSlider. The div class name should match exactly like I specified at the code example. Also include the navigation div inside the div. You can rename the class name for that navigation div. If you want to keep navigation how it looks now then keep the class name kickass-slider-nav for the div and also add the data-dir attribute to define the direction for that button and they needs to be "next" for the next direction and "prev" for the previous direction.

<div class="kickassTextSlider">

    <ul class="nav nav-tabs" role="tablist">
      <li role="presentation" class="active"><a href="#home" aria-controls="home" role="tab" data-toggle="tab">Home</a></li>
      <li role="presentation"><a href="#profile" aria-controls="profile" role="tab" data-toggle="tab">Profile</a></li>
      <li role="presentation"><a href="#messages" aria-controls="messages" role="tab" data-toggle="tab">Messages</a></li>
      <li role="presentation"><a href="#settings" aria-controls="settings" role="tab" data-toggle="tab">Settings</a></li>
    </ul>

    <div class="kickass-slider-nav">
      <button class="dir-prev" data-dir="prev">Prev</button>
      <button class="dir-next" data-dir="next">Next</button>
    </div><!-- End kickass-slider-nav -->
</div>

Then include the jquery.kickasstextslider.css file in The head:

<link href="css/jquery.kickasstextslider.css" rel="stylesheet">

Finally include the jquery.kickasstextslider.js in the Footer and initialize the plugin.

<script src="js/jquery.kickasstextslider.js"></script>
<script>
    $('.kickassTextSlider').kickassTextSlider({
        nav: '.example',
        speed: 300
    });
</script>

For now just 2 options are Available. One is for the class name of navigation div and another one is for the speed. You can download and check the demo.

##License This package is published under GNU LGPLv3 license and copyright to Tawsif Alam. Idea is provided by Asikur Islam. The license agreement is on project's root.

License: GNU LGPLv3
Package Author: Tawsif Alam
Package Copyright: Tawsif Alam
Original Idea By: Asikur Islam

kickass-text-slider's People

Contributors

tawsifalam avatar

Stargazers

Roman avatar Asikur Islam avatar Md. Akhter-Uz-Zaman avatar Md. Rasheduzzaman avatar Nuruzzaman Milon avatar

Watchers

James Cloos avatar  avatar  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.