ng-scrollable

Pure Javscript / AngularJS scrolling.

Features

Supports mouse, wheel, keyboard and touch input sources.

Kinetic scrolling on touch devices.

Small. Minified size is 10k JS + 1.4k CSS.

Pure Angular. No jquery required.

Soft scrolling using CSS3 translate3d and transition.

Responsive and friendly to your layout.

Fully customizable. CSS, scrollbar position and behaviour.

Download

ng-scrollable-0.2.6.tar.gz ng-scrollable-0.2.6.zip

Demo

ng-scrollable with bars on both axes

{scrollX:'bottom',scrollY:'right'}(default)

Use mouse or keyboard to scroll.
ng-scrollable with left vertical bar only

{scrollX:'none',scrollY:'left'}

Note how keyboard Home/End keys change.

Manual positioning

ng-scrollable with controls
X {{posX}} Y {{posY}}

How to use it

<head>
    <link href="ng-scrollable.min.css" rel="stylesheet">
    <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script>
    <script src="ng-scrollable.min.js"></script>
    <script>var app = angular.module('app', ['ngScrollable']);</script>
</head>
<body ng-app="app">
    <div ng-scrollable style="width: 400px; height: 300px;">
        <img src="image.png"/>
    </div>
</body>

Documentation

See the README file in the GitHub Repo.

License

The MIT License (MIT)
Copyright (c) 2014 - 2017 Alexander Eichhorn and contributors.