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.