Well I'm using a progress bar whenever I'm loading some data on the page. To be cool I'm trying to put an effect on when it pops up.
But the effect only works when it is hidden, how do I apply it when it appears?
Progress bar class loader-overlay
;
Class that hides progress-bar loader-hidden
;
css code:
.loader-hidden {
position: absolute;
width:100%;
z-index: 500000;
transform: scaleY(0);
transform-origin: top;
transition: transform 0.26s ease;
}
.loader-overlay {
position: absolute;
width:100%;
z-index: 500000;
transform: scaleY(1);
transform-origin: top;
transition: transform 0.26s ease;
}
HTML code:
<div [class.loader-hidden]="!show">
<div class="loader-overlay">
<div>
<md-progress-bar color="accent" mode="indeterminate"></md-progress-bar>
</div>
</div>
</div>