Skip to content

A featherweight replacement scrollbar directive for angularJS

Notifications You must be signed in to change notification settings

nozzle/nzScrollbar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nzScrollbar

Join the chat at https://gitter.im/nozzle/nzScrollbar An amazingly simple scroll replacement for Angular!

Install

  1. bower install nz-scrollbar
  2. Include files in your app
  3. nzScrollbar.js 2. nzScrollbar.css
  4. Include nzScrollbar as a dependency (i.e. in app.js)
  5. Use nzScrollbar on any element to make it's contents scrollable!

Like so:

<div nz-scrollbar>
    Lorem ipsum dolor sit amet, consectetur adipiscing 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...
</div>

To use css top:offset instead of transform:translate():

<div nz-scrollbar use-css-translate="false">
    Lorem ipsum dolor sit amet, consectetur adipiscing 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...
</div>

Happy Scrolling!

About

A featherweight replacement scrollbar directive for angularJS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •