Add scale up animation for logo
This commit is contained in:
parent
6a7559a3ad
commit
a33226250b
|
@ -1,18 +0,0 @@
|
||||||
@keyframes animation-logo {
|
|
||||||
0% {
|
|
||||||
transform: translateY(100%);
|
|
||||||
opacity: 0;
|
|
||||||
}
|
|
||||||
50% {
|
|
||||||
transform: translateY(30%);
|
|
||||||
opacity: 0;
|
|
||||||
}
|
|
||||||
100% {
|
|
||||||
transform: translateY(0);
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.animation-logo {
|
|
||||||
animation-name: animation-logo;
|
|
||||||
}
|
|
|
@ -266,7 +266,7 @@
|
||||||
</div>
|
</div>
|
||||||
<ng-template #header_template let-mobile="mobile">
|
<ng-template #header_template let-mobile="mobile">
|
||||||
<a *ngIf="!activeHeader.url" [routerLink]="activeHeader.route" [class.uk-padding-remove]="!isHeaderLeft"
|
<a *ngIf="!activeHeader.url" [routerLink]="activeHeader.route" [class.uk-padding-remove]="!isHeaderLeft"
|
||||||
class="uk-logo uk-navbar-item uk-flex uk-flex-middle uk-animation-fast" [class.animation-logo]="replaceHeader" [class.uk-animation-fade]="!replaceHeader">
|
class="uk-logo uk-navbar-item uk-flex uk-flex-middle uk-animation-scale-up">
|
||||||
<img *ngIf="(mobile && activeHeader.logoSmallUrl) || (!mobile && activeHeader.logoUrl)"
|
<img *ngIf="(mobile && activeHeader.logoSmallUrl) || (!mobile && activeHeader.logoUrl)"
|
||||||
[src]="!mobile?activeHeader.logoUrl:activeHeader.logoSmallUrl"
|
[src]="!mobile?activeHeader.logoUrl:activeHeader.logoSmallUrl"
|
||||||
[alt]="activeHeader.title">
|
[alt]="activeHeader.title">
|
||||||
|
@ -278,7 +278,7 @@
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</a>
|
</a>
|
||||||
<a *ngIf="activeHeader.url" [href]="activeHeader.url" [class.uk-padding-remove]="!isHeaderLeft"
|
<a *ngIf="activeHeader.url" [href]="activeHeader.url" [class.uk-padding-remove]="!isHeaderLeft"
|
||||||
class="uk-logo uk-navbar-item uk-flex uk-flex-middle uk-animation-fast" [class.animation-logo]="replaceHeader" [class.uk-animation-fade]="!replaceHeader">
|
class="uk-logo uk-navbar-item uk-flex uk-flex-middle uk-animation-scale-up">
|
||||||
<img *ngIf="(mobile && activeHeader.logoSmallUrl) || (!mobile && activeHeader.logoUrl)"
|
<img *ngIf="(mobile && activeHeader.logoSmallUrl) || (!mobile && activeHeader.logoUrl)"
|
||||||
[src]="!mobile?activeHeader.logoUrl:activeHeader.logoSmallUrl"
|
[src]="!mobile?activeHeader.logoUrl:activeHeader.logoSmallUrl"
|
||||||
[alt]="activeHeader.title">
|
[alt]="activeHeader.title">
|
||||||
|
|
|
@ -27,8 +27,7 @@ export interface Header {
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'navbar',
|
selector: 'navbar',
|
||||||
templateUrl: 'navigationBar.component.html',
|
templateUrl: 'navigationBar.component.html'
|
||||||
styleUrls: ['navigation.component.less']
|
|
||||||
})
|
})
|
||||||
export class NavigationBarComponent implements OnInit, OnDestroy {
|
export class NavigationBarComponent implements OnInit, OnDestroy {
|
||||||
@Input() portal: string = 'connect';
|
@Input() portal: string = 'connect';
|
||||||
|
|
Loading…
Reference in New Issue