CodeBeam.MudBlazor.Extensions icon indicating copy to clipboard operation
CodeBeam.MudBlazor.Extensions copied to clipboard

MudAnimation: Control the Initialized State

Open gle4711 opened this issue 2 years ago • 3 comments
trafficstars

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

gle4711 avatar Mar 05 '23 10:03 gle4711

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.

mckaragoz avatar Mar 05 '23 10:03 mckaragoz

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

image

gle4711 avatar Mar 05 '23 12:03 gle4711

Hmm no idea for now need to see code

mckaragoz avatar Mar 05 '23 13:03 mckaragoz