ng-matero / extensions

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

How to disable animation #256

Closed corentinclichy closed 5 months ago

corentinclichy commented 6 months ago

I would like to disable animation on the drawer.

Is it possible ? Do you think that we can add this option (like the @disable from angular)? This animation create visual bug on the ui on my side.

EDIT:

to give a bit more context, here is the bug I have if I disable all angular animation with NoopAnimationModule I don't get any bug anymore. Note that the bug is only on chrome. image

thanks in advance

nzbin commented 6 months ago

Can you give me an online example?

corentinclichy commented 6 months ago

mmm I can't as the application I have is protected with proxy.

I did a lot of test, I guess is when there is a graph underneath (I use chartjs on this project)

I did a PR to add a "disableAnimation" option to the drawer component.

I guess it can be a great feature to have on your component, for this kind of situation but mainly for performance optimisation and accessibility.

nzbin commented 6 months ago

I hope you can give me a minimal reproduce demo and I want to know how you use it. I don't think it is the animation caused this issue.

nzbin commented 5 months ago

I'm sorry, I will close this issue as you can't provide a minimal reproduce demo.