Quantcast
Channel: Adobe Community : All Content - Edge Animate
Viewing all articles
Browse latest Browse all 9897

Tutorial on: Easy to use custom scrollbars

$
0
0

Hey everyone i seen a few discussions around that people need customscrollbars

 

i have now gathered to must easy to use out of the box project

 

It works down to IE6 and works in all device - nicescroll

 

 

$(function() {                

   $("#thisdiv").niceScroll({ 

     cursorcolor:"#00F",      

     cursoropacitymin: 0.3    

   });                        

});                           



Do a ready function and then call nicescroll on your element inside
remember to add the nicescroll lib
which you can get here

 

add it inside the head after jquery but before

you call it so it could look like this

 

<html>

<head>

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>

    <script type="text/javascript" src="your/path/jquery.nicescroll.js"></script>

    <script type="text/javascript" src="your/path/jquery.main.js"></script>

</head>

<body>

     <div id="thisdiv">

          Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod

          tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,

          quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo

          consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse

          cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non

          proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

     </div>

</body>

</html>

 

To see more go to the libary's home
at: http://areaaperta.com/nicescroll/

 

Best regards
SP


Viewing all articles
Browse latest Browse all 9897

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>