Skip to content

Commit 8352cb7

Browse files
maj
1 parent aeffb94 commit 8352cb7

5 files changed

Lines changed: 12 additions & 15 deletions

File tree

src/app/shared/error-handler/error-views/timeout-error/timeout-error.component.scss

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
&.is-ready {
2020
transform: translateY(0);
2121
opacity: 1;
22-
pointer-events: auto;
2322
}
2423

2524
&__content {
@@ -36,8 +35,7 @@
3635
aspect-ratio: 1 / 1;
3736
max-width: 300px;
3837
margin: 0 auto;
39-
animation: pop-in 0.8s cubic-bezier(0.26, 0.53, 0.74, 1.48) forwards;
40-
will-change: transform;
38+
animation: fade-in-up 0.7s ease-out forwards;
4139
}
4240

4341
&__lottie {

src/app/shared/error-handler/error-views/timeout-error/timeout-error.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { AfterViewInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, inject, OnDestroy, ViewChild } from '@angular/core';
1+
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, inject, OnDestroy, OnInit, ViewChild } from '@angular/core';
22
import { TranslateModule } from '@ngx-translate/core';
33

44
import { DotLottie } from '@lottiefiles/dotlottie-web';
@@ -16,7 +16,7 @@ const DEFAULT_PIXEL_RATIO = 1;
1616
changeDetection: ChangeDetectionStrategy.OnPush,
1717
})
1818

19-
export class TimeoutErrorComponent implements AfterViewInit, OnDestroy {
19+
export class TimeoutErrorComponent implements OnInit, OnDestroy {
2020

2121
private readonly cdr = inject(ChangeDetectorRef);
2222

@@ -26,7 +26,7 @@ export class TimeoutErrorComponent implements AfterViewInit, OnDestroy {
2626

2727
isReady = false;
2828

29-
ngAfterViewInit(): void {
29+
ngOnInit(): void {
3030
this.dotLottieInstance = new DotLottie({
3131
canvas: this.lottieCanvas.nativeElement,
3232
src: 'assets/animations/timeout-error-sandglass.lottie',

src/app/shared/error-handler/error-views/unknown-error/unknown-error.component.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
&.is-ready {
2222
transform: translateY(0);
2323
opacity: 1;
24-
pointer-events: auto;
2524
}
2625

2726
&__content {

src/app/shared/error-handler/error-views/unknown-error/unknown-error.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { AfterViewInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, inject, OnDestroy, ViewChild } from '@angular/core';
1+
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, inject, OnDestroy, OnInit, ViewChild } from '@angular/core';
22
import { TranslateModule } from '@ngx-translate/core';
33

44
import { DotLottie } from '@lottiefiles/dotlottie-web';
@@ -15,7 +15,7 @@ const DEFAULT_PIXEL_RATIO = 1;
1515
styleUrl: './unknown-error.component.scss',
1616
changeDetection: ChangeDetectionStrategy.OnPush
1717
})
18-
export class UnknownErrorComponent implements AfterViewInit, OnDestroy {
18+
export class UnknownErrorComponent implements OnInit, OnDestroy {
1919

2020
private readonly cdr = inject(ChangeDetectorRef);
2121

@@ -25,7 +25,7 @@ export class UnknownErrorComponent implements AfterViewInit, OnDestroy {
2525

2626
isReady = false;
2727

28-
ngAfterViewInit(): void {
28+
ngOnInit(): void {
2929
this.dotLottieInstance = new DotLottie({
3030
canvas: this.lottieCanvas.nativeElement,
3131
src: 'assets/animations/unknown-error-abduction.lottie',

src/styles/base/_animations.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,11 @@ $shake-intensity: 1%;
8989

9090
/*------Fade In Up------*/
9191
.fade-in-up {
92-
animation: fade-in-up 0.5s ease-in-out;
92+
animation: fade-in-up 0.7s ease-in-out;
9393
}
9494

9595
@keyframes fade-in-up {
96-
from { opacity: 0; transform: translate3d(0, 100%, 0); }
96+
from { opacity: 0; transform: translate3d(0, 50%, 0); }
9797
to { opacity: 1; transform: translate3d(0, 0, 0); }
9898
}
9999

@@ -265,9 +265,9 @@ $shake-intensity: 1%;
265265
animation: pop-in 0.8s cubic-bezier(0.26, 0.53, 0.74, 1.48) forwards;
266266
}
267267
@keyframes pop-in {
268-
0% { opacity: 0; transform: scale3d(0.2, 0.2, 0.2); filter: blur(10px); }
269-
70% { opacity: 1; transform: scale3d(1.15, 1.15, 1.15); filter: blur(0px); }
270-
100% { opacity: 1; transform: scale3d(1, 1, 1); filter: blur(0px); }
268+
0% { opacity: 0; transform: scale3d(0.7, 0.7, 0.7); }
269+
70% { opacity: 1; transform: scale3d(1.1, 1.1, 1.1); }
270+
100% { opacity: 1; transform: scale3d(1, 1, 1); }
271271
}
272272

273273
/*------Sonar Pulse------*/

0 commit comments

Comments
 (0)