ember-hiding-menu
v0.2.1
Published
Ember addon which adds functionality to toggle class on scroll down
Downloads
84
Readme
Ember-hiding-menu
Simple addon that allows content to be hidden on scrolling down and reappear on scrolling up. (By toggling a class).
DEMO: https://martinmalinda.github.io/ember-hiding-menu/
1) Install the addon
ember install ember-hiding-menu
2) Import SCSS
@import 'hiding-menu';
3) Use it
{{#hiding-menu throttleTime=200 topTolerance=50 bottomTolerance=20 class="my-menu"}}
{{link-to "somewhere"}}
{{/hiding-menu}}
{{#hiding-menu class="bottom"}}
This menu is fixed on bottom.
{{/hiding-menu}}