Skip to content

Prevent first run of MudAnimate #591

Open

Description

@americanslon

Is there some way to make it so MudAnimate animation skips the initial rendering run and only runs on manual calls to `.Refresh()'?

Thanks!

Activity

  1. mckaragoz commented on Jan 24, 2026

    @mckaragoz
    Contributor

    You can wrap MudAnimate in if block and control the state with a variable. I know it's not very clear but works properly.

  2. americanslon commented on Jan 26, 2026

    @americanslon
    Author

    Thanks! I tried that actually but my app is complex enough and in such a way that I can't easily capture when the animation should be on or off.

    Any plans to improve that? Perhaps make it so default behavior skips the first run but the first run can be enabled with a variable? Maybe I am not imaginative enough but I don't see a lot of cases where someone would want the first run - it seems in UI you want animations mostly on an action.
    Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions