Blazor, Blazor Webassembly, Dotnet Core, Net Core.
selectedChoice = choice; animationClass = selectedChoice == count ? "jump" : "shake"; await Task.Delay(1500); animationClass = ""; selectedChoice = null; } string GetAnimationClass(int choice) { return selectedChoice == choice ? animationClass : ""; } } Kita harus mengubah method CheckAnswer untuk