51
Views
3
Comments
How to run the loading spinner in Traditional
Application Type
Traditional Web

Hello everyone
So i want to have a loading animation perform when i press a button. In reactive it work well, but in traditional for some reason it just a static spinner icon, no spin no nothing, after i press the button it just appear and stay put. Can someone help me with this? Here is my basic OML with a button to enable the spinner., Thank you in advances
PS: I did saw some forge components that support my question with ease, but i'm trying to not use as much forge component as possible

LoadingSpinner.oml
2026-01-28 16-57-48
Mihai Melencu
Champion

Hi @Long Truong Hoang ,

Applying the following CSS to the container holding your icon will create a spinning animation: 

.spin {

  animation: spin 1s linear infinite;

}


@keyframes spin {

  from {

    transform: rotate(0deg);

  }

  to {

    transform: rotate(360deg);

  }

}

Please check the updated OML.

LoadingSpinner.oml
2025-07-28 06-45-20
Rupesh Patil

Hi @Long Truong Hoang 

You can check oml file below I  attached

.loading-spinner{     

animation: rotation 1s linear infinite;   

 }    

@keyframes rotation {

    0% {

        transform: rotate(0deg);

    }

    100% {

        transform: rotate(360deg);

    }

    } 

I hope this helps 

thanks

LoadingSpinnerNew.oml
2025-07-22 10-30-27
Mandar Deshpande

This seems to be the behavioral difference between Traditional and Reactive.

CSS animations in reactive feel more natural but in Traditional, if a button triggers full screen submit instead of an Ajax Submit, the browser refreshes the page (CSS animations wont get a chance to run.)

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.