Disable Angular grid header menu animation
As described in this answer , there is a generic, non-UI-Grid-specific way of disabling animations for certain elements. Note that this does not only affect the animation being executed ngAnimate
; rather, it turns off all animations altogether.
From the original answer:
Just add this to your CSS. Better if this is the last rule:
.no-animate { -webkit-transition: none !important; transition: none !important; }
then add
no-animate
to the class of the element you want to disable. Example:
<div class="no-animate"></div>
So, to disable animation of grid menus, do the following (using Sass, but you get the idea):
.ui-grid-menu-mid {
@extend .no-animate; // the .ng-animate class is as defined above
}
The only real drawback I see with this method is that you cannot selectively turn off animations for the Column and / or Grid menu, only for both at the same time.
source to share