Blazor, Blazor Webassembly, Dotnet Core, Net Core.
animationClass = ""; int? selectedChoice = null; ... } We also have to add TriggerAnimation and GetAnimationClass method: @code { ... async Task TriggerAnimation(int choice) { // prevent overlapping animation if (selectedChoice != null) return; selectedChoice = choice; animationClass =