An open API service indexing awesome lists of open source software.

https://github.com/fixate/angular-smooth-scroll

Smooth scroll to elements on a page
https://github.com/fixate/angular-smooth-scroll

Last synced: 2 months ago
JSON representation

Smooth scroll to elements on a page

Awesome Lists containing this project

README

        

# Angular Smooth Scroll

Smooth scroll to frag IDs on a page. Vanilla JS and jQuery directives available. Visit https://github.com/durated/angular-scroll for a fully featured Angular scroll directive.

Original work here: https://github.com/arnaudbreton/angular-smoothscroll

[DEMO](http://fixate.github.io/angular-smooth-scroll/demo/)

## Installation
Bower:

```
bower install https://github.com/fixate/angular-smooth-scroll.git#master
```

## Usage

```javascript
angular.module('myApp', ['smoothScroll']);
```

### Without jQuery

```html
scroll to #my-id

scroll to #my-other-id

scroll with offset
```

### With jQuery

```html
scroll to #my-id

scroll to #my-other-id

scroll for 2000ms

scroll with offset
```

## License

MIT: http://fixate.mit-license.org/