From 63ac10c0ef0bab72c19912ca25b1238f7717e0ae Mon Sep 17 00:00:00 2001 From: Dahln Farnes Date: Wed, 13 Mar 2024 16:15:01 -0600 Subject: [PATCH] New Spinner SVG without CSS animtion --- BlazorSpinner/BlazorSpinner.csproj | 6 +++--- BlazorSpinner/Spinner.razor | 34 +++++++----------------------- 2 files changed, 11 insertions(+), 29 deletions(-) diff --git a/BlazorSpinner/BlazorSpinner.csproj b/BlazorSpinner/BlazorSpinner.csproj index eb41d39..ac3707a 100644 --- a/BlazorSpinner/BlazorSpinner.csproj +++ b/BlazorSpinner/BlazorSpinner.csproj @@ -10,15 +10,15 @@ - 1.5.0 + 2.0.0 dahln - v1.5.0: Updated to .NET 8 + v2.0.0: New Spinner SVG without CSS animtion BlazorSpinner is a loading spinner that can be included in Blazor applications. It has a simple service that can be called to "show" or "hide" the spinner. true https://github.com/dahln/blazorspinner/blob/master/LICENSE https://github.com/dahln/blazorspinner GitHub - Copyright (c) 2023 Dahln Farnes + Copyright (c) 2024 Dahln Farnes blazor,spinner,loading diff --git a/BlazorSpinner/Spinner.razor b/BlazorSpinner/Spinner.razor index 11d78ab..4e70f2c 100644 --- a/BlazorSpinner/Spinner.razor +++ b/BlazorSpinner/Spinner.razor @@ -8,17 +8,6 @@ height: 100vh; } - .loading-container i { - color: white; - } - - .loading-icon { - position: fixed; - top: 30%; - left: 50%; - margin-left: -55px; /* Negative half of width. */ - } - .loading-overlay { position: fixed; top: 0; @@ -29,27 +18,20 @@ height: 100%; } - @@-webkit-keyframes infiniteRotate { - 0% { -webkit-transform: rotate(0deg); } - 100% { -webkit-transform: rotate(360deg); } - } - /* Standard syntax */ - @@keyframes infinite-rotate { - 0% { -webkit-transform: rotate(0deg); } - 100% { -webkit-transform: rotate(360deg); } - } - .spin { - -webkit-animation: infiniteRotate 2s linear infinite; /* Safari */ - animation: infiniteRotate 2s linear infinite; - } - @if (IsVisible) {
- + + + + + + + +
}