added animations
This commit is contained in:
parent
3dc0223df0
commit
d7819f732e
5 changed files with 33 additions and 6 deletions
|
|
@ -1,6 +1,5 @@
|
||||||
import { ApplicationConfig, importProvidersFrom } from '@angular/core';
|
import { ApplicationConfig, importProvidersFrom } from '@angular/core';
|
||||||
import { provideRouter } from '@angular/router';
|
import { provideRouter, withViewTransitions } from '@angular/router';
|
||||||
|
|
||||||
import { routes } from './app.routes';
|
import { routes } from './app.routes';
|
||||||
import { initializeApp, provideFirebaseApp } from '@angular/fire/app';
|
import { initializeApp, provideFirebaseApp } from '@angular/fire/app';
|
||||||
import { getFirestore, provideFirestore } from '@angular/fire/firestore';
|
import { getFirestore, provideFirestore } from '@angular/fire/firestore';
|
||||||
|
|
@ -31,7 +30,7 @@ export const appConfig: ApplicationConfig = {
|
||||||
})
|
})
|
||||||
),
|
),
|
||||||
provideHttpClient(),
|
provideHttpClient(),
|
||||||
provideRouter(routes),
|
provideRouter(routes, withViewTransitions()),
|
||||||
importProvidersFrom(
|
importProvidersFrom(
|
||||||
provideFirebaseApp(() =>
|
provideFirebaseApp(() =>
|
||||||
initializeApp({
|
initializeApp({
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,8 @@
|
||||||
<div class="blue-bar"></div>
|
<div class="blue-bar"></div>
|
||||||
<div class="metrics-txt">Better with a team</div>
|
<div class="metrics-txt">Better with a team</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
@if (paramsId) {
|
||||||
|
<div>
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<div
|
<div
|
||||||
class="circle"
|
class="circle"
|
||||||
|
|
@ -47,4 +48,5 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
}
|
||||||
</section>
|
</section>
|
||||||
|
|
|
||||||
|
|
@ -93,6 +93,26 @@ section {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Custom transition */
|
||||||
|
@keyframes rotate-out {
|
||||||
|
to {
|
||||||
|
transform: rotate(90deg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@keyframes rotate-in {
|
||||||
|
from {
|
||||||
|
transform: rotate(-90deg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
::view-transition-old(count),
|
||||||
|
::view-transition-new(count) {
|
||||||
|
animation-duration: 200ms;
|
||||||
|
animation-name: -ua-view-transition-fade-in, rotate-in;
|
||||||
|
}
|
||||||
|
::view-transition-old(count) {
|
||||||
|
animation-name: -ua-view-transition-fade-out, rotate-out;
|
||||||
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 1300px) {
|
@media screen and (max-width: 1300px) {
|
||||||
.headerline {
|
.headerline {
|
||||||
.title {
|
.title {
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,5 @@
|
||||||
} }
|
} }
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@if (paramsId) {
|
|
||||||
<app-contact-detail></app-contact-detail>
|
<app-contact-detail></app-contact-detail>
|
||||||
}
|
|
||||||
</section>
|
</section>
|
||||||
|
|
|
||||||
8
src/app/module/animation.module.ts
Normal file
8
src/app/module/animation.module.ts
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [BrowserAnimationsModule],
|
||||||
|
exports: [BrowserAnimationsModule],
|
||||||
|
})
|
||||||
|
export class MyAnimationsModule {}
|
||||||
Loading…
Reference in a new issue