masastack / MASA.Blazor

Blazor UI component library based on Material Design. Support Blazor Server, Blazor WebAssembly and MAUI Blazor.
https://docs.masastack.com/blazor/getting-started/installation
Other
1.19k stars 159 forks source link

Animation Disible #1504

Closed wisamidris7 closed 1 year ago

wisamidris7 commented 1 year ago

Can Your Package Contains Disible Animation Cause When I Tryed You Should Make

TranslationElementBase.cs

159: _transitionJsInvoker = new TransitionJsInvoker(Js);

This Should Be Depency Injection Cause I Will Replace Him With My Own Code Like Disaibling Or Custom Animations

builer.Services.Replace<ITransitionJsInvoker, CustomTransitionJsInvoker>();
capdiem commented 1 year ago

@wisamidris7 I don't think a custom transitionJsInvoker will work as you expect. The only way to ban the transition is Transition="". I will refactor the implement of transition in future.

wisamidris7 commented 1 year ago

I don't think a custom transitionJsInvoker will work as you expect. The only way to ban the

Cause Some Or Most Of The Components Are Not Having Transition="" So I Want To Make Custom translation.js

And I Planed And Tryed With MASA.Blazor.Demo And It Work I Disibled Ripple Animation From blazor-components.js By Making Ripple Animation A Empty Thing And I Maked It With translation.js

I Maked Custom blazor-components.js but I can't Do translation.js

Or Make A Global DisibleTranslation Property For All

wisamidris7 commented 1 year ago

from masa.blazor 1.0.1 is being animtions is fast