Blazor.Animate icon indicating copy to clipboard operation
Blazor.Animate copied to clipboard

Delay doesn't seem to do anything

Open PaulSinnema opened this issue 3 years ago • 2 comments

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 [email protected](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();
		}
	}
}

PaulSinnema avatar Apr 17 '21 18:04 PaulSinnema

having the same issue. I think its broken

mrcameron999 avatar May 15 '21 18:05 mrcameron999

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

gabrieldelaparra avatar Feb 18 '23 00:02 gabrieldelaparra