Megabit / Blazorise

Blazorise is a component library built on top of Blazor with support for CSS frameworks like Bootstrap, Tailwind, Bulma, AntDesign, and Material.
https://blazorise.com/
Other
3.32k stars 535 forks source link

Repeat/Restart Animate animation #5751

Open carlberg74 opened 2 months ago

carlberg74 commented 2 months ago

I added a simple animation and that works, but I want it to repeat every X seconds..

<Animate @ref="@_animate" Animation="Animations.SlideLeft"> Again...Please..

I tried setting; Once="false" Auto="true" DelayMilliseconds="2000" and was hoping for the animation would repeat after 2000 ms.. But it only runs once.

So, I tested added a Timer that calls: _animate.Run() every X seconds, but it wont run.. Tested added: await InvokeAsync(async () => _animate.Run() + StateHasChanged(); }); in the Elapsed event of the timer.. But nothing gets the animation to repeat/run-again.

If add a button and add _animate.Run() ... that would probably work.. but..

What am I missing?

Another questions, Easing, I guess that occurs after the Animation? but setting it to ex. EaseInBackEasing, has no effect.