Missing css style for spinner-grow

Ricardo Cadete 0 Reputation points
2024-07-08T13:16:11.4533333+00:00

At the Blazor Traninig exercise i noticed that the progress red ball was not working.

https://learn.microsoft.com/en-gb/training/modules/blazor-build-rich-interactive-components/3-exercise-use-javascript-libraries-blazor-apps

I add to include this CSS at the site.css for the tranning exercise to make it work.

@keyframes spinner-grow {
    0% {
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

.spinner-grow {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: text-bottom;
    background-color: currentColor;
    border-radius: 50%;
    opacity: 0;
    animation: spinner-grow 0.75s linear infinite;
}
Blazor Training
Blazor Training
Blazor: A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.Training: Instruction to develop new skills.
10 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Pradeep M 4,015 Reputation points Microsoft Vendor
    2024-07-09T04:19:27.24+00:00

    Hi Ricardo Cadete,

    Thank you for reaching out to the Microsoft Q&A forum. 

    During the Blazor training exercise, I observed that the progress red ball animation was not functioning as expected. To rectify this, I included the following CSS in the site.css file to ensure the spinner animation works correctly:

    @keyframes spinner-grow {
        0% {
            transform: scale(0);
        }
        50% {
            opacity: 1;
            transform: scale(1);
        }
        100% {
            opacity: 0;
            transform: scale(1.5);
        }
    }
    
    .spinner-grow {
        display: inline-block;
        width: 2rem;
        height: 2rem;
        vertical-align: text-bottom;
        background-color: currentColor;
        border-radius: 50%;
        opacity: 0;
        animation: spinner-grow 0.75s linear infinite;
    }
    

    Including this CSS snippet should enable the animated spinner to appear and function as intended during the order status updates.

    For further details, please refer to the training module: Use JavaScript libraries in a Blazor app.

    If you follow these steps and still encounter issues, please provide any error messages you receive so that I can assist you further. 

    If you have found the answer provided to be helpful, please click on the "Accept answer/Upvote" button so that it is useful for other members in the Microsoft Q&A community.     

    Thank you. 

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.