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
- Host: GitHub
- URL: https://github.com/peterpme/ng-smooth-scroll
- Owner: peterpme
- License: other
- Created: 2014-08-26T02:23:11.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-09-09T20:15:45.000Z (over 11 years ago)
- Last Synced: 2025-03-10T04:11:22.954Z (10 months ago)
- Language: JavaScript
- Size: 180 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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: