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

https://github.com/peterpme/ng-smooth-scroll

AngularJS directive that delivers smooth scrolling to your application
https://github.com/peterpme/ng-smooth-scroll

Last synced: 11 days ago
JSON representation

AngularJS directive that delivers smooth scrolling to your application

Awesome Lists containing this project

README

          

# Angular Smooth Scrolling Directive

An AngularJS directive that makes scrolling seamless on your page.

## Browser Support
- Chrome, Safari, Opera, FireFox, IE

## Install

Clone the repository and include directly into your project. You can also use bower and install as a dependency:

```
bower install ng-smooth-scroll --save
```

Add the dependency in your Angular's project dependency arguments:

```js
var app = angular.module('MyApp', [
'ng-smooth-scroll'
]);
```

Make sure you reference the script in your javascript:

```js

```

** Note: Currently, I am adding `data-ng-smooth-scroll` to my html class, like below. I don't necessarily link this, but will try and come up with a better implementation. **

```html

```

## Usage

`ng-smooth-scroll` looks for the target `href` and a class on the link you're looking for, ex. `scroll-to'

Example:

```html
One
Two
```