I asked because initially it was not working, but for no apparent reason Blazor.Animate wasn't working until I did a couple of hard refreshes.
After that I did
<RadzenSteps Change="@HandleChangeDirection">
With behind code of
public class SlidingComponent : ComponentBase
{
private int currentIndex;
public IAnimation Direction { get; set; } = Animations.SlideRight;
public async Task HandleChangeDirection(int arg)
{
if (currentIndex > arg)
{
Direction = Animations.SlideLeft;
}
else
{
Direction = Animations.SlideRight;
}
currentIndex = arg;
}
}