Fade button while scrolling


I have two fixed buttons on a view in my Ionic Project, with absolute positioning.

I would like to change the button opacity when user begins scrolling, and return to original opacity when scroll event ends.

How can I go about this? Any help is highly appreciated.