JQuery scroll bar plug-in nanoscroroller User Guide

Source: Internet
Author: User

JQuery scroll bar plug-in nanoscroroller User Guide

JQuery scroll bar plug-in nanoscroroller User Guide

The nanoScrollerJS introduced in this article is a jQuery plug-in that implements the scroll bar Effect of Mac OS X Lion system in a simple way. The scroll bar plug-in uses the native scroll bar to work on iPad, iPhone, and some Android Tablets.

When a website displays too much information, there are three solutions. 1. display the information by page. 2. The whole page is displayed, but the page is too long, affecting the browsing experience. 3. Use the scroll bar. The default scroll bar style is too simple and the user experience is unfriendly. So we need to beautify the scroll bar.

The simplest way to beautify the scroll bar is to use the jquery plug-in. This article describes the scroll bar plug-in nanoscroler in the jquery plug-in.

Official display, customizable styles

1. nanoscroller plug-in Function

Implement content scrolling

2. Official Address of nanoscroller

Http://jamesflorentino.github.io/nanoScrollerJS/

3. How to Use nanoscroller

1. reference file

?

1

2

3

<Script type = "text/javascript" src = "jquery-1.9.1.js"> </script>

<Script type = "text/javascript" src = "jquery. nanoscroller. js"> </script>

<Link rel = "stylesheet" href = "nanoscroller.css">

2. Define the scroll bar style

?

1

2

3

4

5

6

7

8

9

10

11

12

13

. Nano {background: # bba; width: 500px; height: 500px; font-size: 12px; font-family:; border-radius: 8px ;}

. Nano. content {

Padding: 20px;

}

. Nano. pane {

Background: #555;

Width: 8px;

Right: 1px;

Margin: 5px;

}

. Nano. slider {

Background: #111;

}

3. Scrolling content

?

1

2

3

4

5

<Div id = "about" class = "nano">

<Div class = "content">

Scrolling content

</Div>

</Div>

The above is all the content of this article. I hope you will like it.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.