CodeBeamOrg / CodeBeam.MudBlazor.Extensions

Useful third party extension components for MudBlazor, from the contributors.
https://mudextensions.codebeam.org/
MIT License
411 stars 67 forks source link

MudAnimation: Control the Initialized State #151

Open gle4711 opened 1 year ago

gle4711 commented 1 year ago

Hi, I have a problem with the MudAnimation service. The animation is started when the page is initialized. I would like to prevent that. The animation should only start after a timer has expired. I have made a sample for this. What have I done wrong?

Best Regards

ButtonAnimation.txt

mckaragoz commented 1 year ago

Hi,

MudAnimate started when initialized by default. Probably we need to add a parameter like StartOnInitialize to control that.

For a workaround, you can set Paused="true", so it doesn't start directly, then you can set it false when your timer expired.

gle4711 commented 1 year ago

Hi, that works, but I wonder why I need to use "await Task.Delay(1000)" to make it work.

image

mckaragoz commented 1 year ago

Hmm no idea for now need to see code