angular-smooth-scroll

A smoothscroll service promise based for AngularJS
Homepage:
1 person uses it
Author: 16e6fbbec2d227b803f7a71078e3ca84?d=https%3a%2f%2fidenticons.github.com%2f9e7e75c25ff1f54f81357dac0125e1c5 onesime

angular-smooth-scroll

A smoothscroll service promise based for AngularJS

Based on Arnaud Breton's algorithme and promises

How To

include the SmoothScroll in your application dependencies

SmoothScroll.$goTo(param) return a promises resolved when the scroll is done

var promise = SmoothScroll.$goTo(600); promise.then(function(end){ console.log("done", end); });

$goTo accepts : * number * simple DOM element * angular element * selector


Next step:

  • tests!
  • accept elements as arguments
  • accept Y scrolls
comments powered by Disqus
This page was last updated over 4 years ago.