jtrussell / angular-snap.js

AngularJS directive for snap.js
http://jtrussell.github.io/angular-snap.js/
MIT License
700 stars 67 forks source link

Hide an element #79

Closed matheussampaio closed 10 years ago

matheussampaio commented 10 years ago

It is possible to hide an element while the drawer is activated, something like ng-hide/ng-show?

jtrussell commented 10 years ago

There's nothing that this directive provides specifically. If your setup isn't too complicated though you can do it with just css as long as the addBodyClasses setting is enabled (it is by default):

body.snapjs-left .hide-when-open,
body.snapjs-right .hide-when-open {
  display: none;
}

Something like that should work.