Add a scroll to top button (Ionic 2 | Typescript)

#1

Hi everyone i am trying to add “scroll to top button.” that implement the following :

  1. Show the button when user has scrolled down.
  2. Hide the button when the user scrolls up.
    3 .If the button is tapped then scroll to the top and hide the button .

any suggestion for how make it right way?

thanks a lot :slight_smile:

#2

I didn’t try myself, but the APIs you need resides in ion-content compoent



etc…