ng-matero / extensions

Angular Material Extensions Library.
https://ng-matero.github.io/extensions/
MIT License
388 stars 48 forks source link

feat(drawer): added disable animation option #257

Closed corentinclichy closed 5 months ago

corentinclichy commented 6 months ago

Hello,

I think we should add the disable animation option available for the user when using the drawer. On my side, this create a visual bug on the ui (part on the screen is still hidden even if the drawer is closed). Moreover, I guess some app does not want to enable animation for maximizing performance (on mobile for example). I guess its also important for a accessibility point of view (like reduced motion, https://a11y-101.com/development/reduced-motion)

The idea is to leverage on @.disable property from angular animations and a property to the drawer config.

Have a nice day and thanks a lot for the good work !