Skip to content

ediri/hover-scroll-to-top

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hover-scroll-to-top

Angular JS ScrollToTop Button

Coverage Status Build Status

Requirements: Angular 1.4+

Features:

  • Create a button only visible after scrolling down
  • With click on button, screen scrolls to the top

Installation:

via bower:

$ bower install hover-scroll-to-top --save

please use either the minified or unminified file in the build directory

Usage:

To start add the require the lib as a dependency for your angular app:

angular.module('myApp', ['scrollToTop']);
<a href='#' scrolltotop> Scroll To Top </a>

Hint

Best usage is with the lib Font Awesome

<a href='#' scrolltotop> 
 <i class="fa fa-4x fa-chevron-circle-up></i>
</a>