Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delay doesn't seem to do anything #21

Open
PaulSinnema opened this issue Apr 17, 2021 · 2 comments
Open

Delay doesn't seem to do anything #21

PaulSinnema opened this issue Apr 17, 2021 · 2 comments

Comments

@PaulSinnema
Copy link

PaulSinnema commented Apr 17, 2021

Tried to get this working with Delay but the animation start immediatly. Also tried using Blasorise implementation. Same issue.

Tried it with DelayMs = "5000" with Delay=@TimeSpan.FromSeconds(5). Same issue.

Solved it like this but it's not nice:

<Animate Animation="Animations.FadeIn"
		 DurationMs="1000"
		 @ref=@UnAuthorizedAnimation
		 IsManual="true">
	<h3>UnAuthorizedDisplay</h3>
</Animate>
using BlazorAnimate;
using System.Threading.Tasks;

namespace Wur.GroupTool.Blazor.Shared
{
	public partial class UnAuthorizedDisplay
	{
		private Animate UnAuthorizedAnimation;

		protected override async void OnInitialized()
		{
			await Task.Delay(5000);

			UnAuthorizedAnimation.Run();

			base.OnInitialized();
		}
	}
}
@mrcameron999
Copy link

having the same issue. I think its broken

@gabrieldelaparra
Copy link

Delays <= 900 do work.
I have not reviewed the code, but hope that this helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants