I'm trying to implement an animation on app start inside of <app-root>...</app-root>. Therefore I've done the following:
<app-root>
<style>
h1 {
font-family: 'Calibre Medium';
color: black;
font-size: 2rem;
margin: 0;
letter-spacing: 1px;
}
</style>
<h1>Test</h1>
</app-root>
It's being displayed, but its CSS is loaded delayed, hence the font is different initially and changes after about 1 sec.
Is there a way to improve this or another approach to implement such behavior?
EDIT: I've already tried to load style inside of the docs head and style.css - no difference.
EDIT: I'm using bootstrap - could this cause a problem?