I'm currently attempting to implement an animated menu using ngAnimate.
index.html
<div id="left-menu" ng-hide="showMenu">
<div class="wrapmenu">
Menu
</div>
</div>
<div id="content-wrapper" ng-show="showMenu" ng-animate="{show: 'slideIn', hide:'slideOut'}">
<button id="menu" ng-click="showMenu = !showMenu"></button>
</div>
style.css
.slideIn-setup,.slideOut-setup {
-webkit-transition: 1s linear opacity;
-moz-transition: 1s linear opacity;
-o-transition: 1s linear opacity;
transition: 1s linear opacity;
}
.slideIn-setup{
opacity:0;
}
.slideOut-setup{
opacity:1;
}
.slideIn-setup.slideIn-start {
opacity: 1;
}
.slideOut-setup.slideOut-start{
opacity:0;
}
Although ngShow and Hide are functioning properly, the animation isn't being triggered.
I've upgraded to Angular 1.1.5 and reviewed the syntax change for CSS in the angular documentation.
Even after trying the new syntax, I haven't seen any improvement.
Any assistance would be greatly appreciated.