3
Well I’m using a Progress-bar whenever I’m loading some data on the page. To stay cool I’m trying to put an effect for when she shows up and disappears.
But the effect only works when it is hidden, as I do for the effect to be applied when it appears?
Class of the Progress-bar loader-overlay
;
Class that hides the 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>
Very good, thank you.
– Hugo Borges