about summary refs log tree commit diff
path: root/BugMine.Web/Components/SimpleSpinner.razor
blob: 920247dd714c4bb6ef996a5da3cd62d2e34a5491 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<pre style="width: fit-content; height: fit-content; background-color: transparent; color: white; rotate: @(i)deg;">|</pre>

@code {
    int i = 0;
    protected override void OnInitialized()
    {
        base.OnInitialized();
        Task.Run(async () =>
        {
            while (true)
            {
                await Task.Delay(12);
                i+=10;
                StateHasChanged();
            }
        });
    }
}