I want to show the spinner on the button when I click it. When the api returns the result, then pop up the modal and hide the spinner at the same time. It seems relatively easy to implement with jQuery, and as a beginner in vue.js, I was at a loss when writing this codeOn this example, I'm always using bootstrap classes, so it should work on your side too. I'm adding .overflow-hidden to the .card element to not make the loading element overflow on .card border. the d-flex flex-column align-items-center bg-white justify-content-center is here to center vertically and horizontally your loading element inside
Image Source. Skeleton Screen Example with Code. See the Pen Skeleton Screen Demo by Joe (@hijiangtao) on CodePen.. 5. CSS Loading Spinner. CSS loading spinners indicate that the page is loading as an animation moving along a circular track.
rBUX6oh.