pregiotek / ion-floating-menu

Material UI-like Floating Action Button and Menu for Ionic applications
MIT License
102 stars 43 forks source link

Hide or show with scroll position on page #22

Closed feruzm closed 8 years ago

feruzm commented 8 years ago

This is great directive! Would it be possible to show or hide button menu with certain part of screen?

Let's say, it will be visible and when scroll position reaches certain threshold it will be hidden. Or opposite, it will stay hidden and when we reach scroll handle/threshold it will be shown. ref: $ionicScrollDelegate

ennedigi commented 8 years ago

With version 1.2 you can specify ng-if or ng-show on the ion-floating-button and ion-floating-menu elements. In this way you can define your hiding logic based on the $ionicScrollDelegate.