diff --git a/src/app/app.component.html b/src/app/app.component.html
index a79df5e..5b1262a 100644
--- a/src/app/app.component.html
+++ b/src/app/app.component.html
@@ -7,7 +7,9 @@
}
}
-
+
+
+
@if (showFooter) {
}
diff --git a/src/app/app.config.ts b/src/app/app.config.ts
index 2fa285c..761b2cd 100644
--- a/src/app/app.config.ts
+++ b/src/app/app.config.ts
@@ -1,6 +1,5 @@
import {ApplicationConfig, importProvidersFrom, provideZoneChangeDetection} from '@angular/core';
-import {provideRouter} from '@angular/router';
-
+import {provideRouter, withInMemoryScrolling, withViewTransitions} from '@angular/router';
import {routes} from './app.routes';
import {provideAnimationsAsync} from '@angular/platform-browser/animations/async';
import {provideClientHydration, withEventReplay} from '@angular/platform-browser';
@@ -17,7 +16,13 @@ export function createTranslateLoader(http: HttpClient) {
export const appConfig: ApplicationConfig = {
providers: [
provideZoneChangeDetection({ eventCoalescing: true }),
- provideRouter(routes),
+ provideRouter(routes,
+ withViewTransitions(),
+ withInMemoryScrolling({
+ scrollPositionRestoration: 'top',
+ anchorScrolling: 'enabled'
+ })
+ ),
provideAnimationsAsync(),
provideClientHydration(withEventReplay()),
provideHttpClient(),
diff --git a/src/styles.css b/src/styles.css
index d863ea0..ee939ea 100644
--- a/src/styles.css
+++ b/src/styles.css
@@ -11,3 +11,9 @@ body {
margin: 0;
font-family: Roboto, "Helvetica Neue", sans-serif;
}
+
+::view-transition-old(root),
+::view-transition-new(root) {
+ animation-duration: 220ms;
+ animation-timing-function: ease;
+}