I need to fill a gauge meter based on a variable sent to the html file. To achieve this, I have initially set the value to zero:
transform:rotate(.0turn);
transition: all 1.3s ease-in-out;
However, when the HTML is first loaded or refreshed (with F5), it triggers a strange animation that I want to prevent. Interestingly, when I navigate to a different section using the side-nav and then return, the animation displays smoothly as expected.
[ngStyle]="{ 'transform': 'rotate(' + dashService.valor_radio + 'turn)' }">
This code snippet is responsible for passing the value from the HTML page to the CSS file. Most of the resources I find online address how to avoid transitions during initial page load, but my focus is on avoiding unexpected animations at that moment. Please note that I am unable to utilize jQuery for this task.