jQuery Plugin To Create A Fixed Side Menu callToScroll - Download jQuery Plugin To Create A Fixed Side Menu - callToScroll

Download jQuery Plugin To Create A Fixed Side Menu – callToScroll

Posted on

This time I will share jQuery Plugin and tutorial about jQuery Plugin To Create A Fixed Side Menu – callToScroll, hope it will help you in programming stack.

jQuery Plugin To Create A Fixed Side Menu callToScroll - Download jQuery Plugin To Create A Fixed Side Menu - callToScroll
File Size: 16.5 KB
Views Total: 7652
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

callToScroll is a jQuery plugin to create a fixed side menu which allows the visitor to navigate between your single page website quickly and smoothly.

How to use it:

1. Load jQuery JavaScript library and other required resources in your web page.

1 <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
2 <script src="isInViewport.min.js" type="text/javascript"></script>
3 <script src="setLocationHash.js" type="text/javascript"></script>

2. Load the jQuery callToScroll plugin’s stylesheet and JavaScript in the web page.

1 <link href="callToScroll.css" rel="stylesheet">
2 <script src="callToScroll.js"></script>

3. Add the CSS class ‘cts-item’ to your content sections.

01 <h2 class="cts-item">Section 1</h2>
02  
03 ...
04  
05 <h2 class="cts-item">Section 2</h2>
06  
07 ...
08  
09 <h2 class="cts-item">Section 3</h2>
10  
11 ...

4. Call the plugin to initialize the side menu with default options.

1 $('h2').ctscroll();

5. Default options available.

01 $('h2').ctscroll({
02  
03 // blue, white or orange
04 'theme': 'orange',
05  
06 // Text between arrows
07 'text': 'Scroll down',
08  
09 // if target element dont have id parameter,
10 // this text and element index is used to set it
11 'autoIdText': 'myIdText',
12  
13 // scroll Duration in ms
14 'scrollDuration': 450,
15  
16 // positive or negative
17 'scrollOffset': 5,
18  
19 // if true, library setLocationHash can be removed
20 'html5Hash': false
21  
22 });

Change log:

2015-10-14

  • added gruntfile, switched to SVG elements, changed project tree
  • bugfix

2015-02-11

  • bugfix

This awesome jQuery plugin is developed by tvaliasek. For more Advanced Usages, please check the demo page or visit the official website.

source : jqueryscript.net