angular-scrollto

Angular directive to scroll to element by selector.
1 person uses it

angular-scrollto

Angular directive to scroll to element by selector.

Requires jQuery. Soon, there will be a non-jQuery version as well.

Install

Bower

NPM

Usage

Inject module

Use as directive

Options

scroll-to

Requred

Element to scoll to when current element is clicked.

offset

Default value: 0

Number of pixels to offset from the top.

duration

Default value: 150

Length of time, in milliseconds, the animation will take.

container

Default value: window

The container element to scroll.

comments powered by Disqus
This page was last updated about 3 years ago.