I am trying to execute a animated menu using ngAnimate.
home.html
<div id="left-menu" ng-hide="showMenu">
<div class="wrapmenu">
Menu
</div>
</div>
<div id="content-wrapper" ng-show="showMenu" ng-animate="{show: 'fadeIn', hide:'fadeOut'}">
<button id="menu" ng-click="showMenu = !showMenu"></button>
</div>
Style.css
.fadeIn-setup,.fadeOut-setup {
-webkit-transition: 1s linear opacity;
-moz-transition: 1s linear opacity;
-o-transition: 1s linear opacity;
transition: 1s linear opacity;
}
.fadeIn-setup{
opacity:0;
}
.fadeOut-setup{
opacity:1;
}
.fadeIn-setup.fadeIn-start {
opacity: 1;
}
.fadeOut-setup.fadeOut-start{
opacity:0;
}
ngShow and Hide works well. But the animation is not triggered.
I have updated to Angular 1.1.5. I find from the angular documents, there has been a change of syntax for CSS
I have also tried the new syntax with the same results.
Any help is appreciated.