From 35e2ba31b4d38e4e0c4d35f391b78d38cb20f926 Mon Sep 17 00:00:00 2001 From: isark Date: Sun, 6 Aug 2023 21:20:12 +0200 Subject: [PATCH] I didn't like some transitions and animations so now they work a lot better. Should probably be refactored at some point --- src/app/app.component.html | 3 +- src/app/app.module.ts | 5 +- src/app/carousel/carousel.component.html | 17 ++-- src/app/carousel/carousel.component.scss | 23 +++-- src/app/carousel/carousel.component.ts | 98 ++++++++++++++----- .../plan-display/plan-display.component.html | 12 ++- .../plan-display/plan-display.component.scss | 5 + src/app/plan-display/plan-display.module.ts | 4 +- 8 files changed, 122 insertions(+), 45 deletions(-) diff --git a/src/app/app.component.html b/src/app/app.component.html index 9cd655d..d57b413 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -4,4 +4,5 @@ matched init Click me for color picker! - \ No newline at end of file + + diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 27f099f..405978e 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -1,5 +1,6 @@ import { APP_INITIALIZER, NgModule } from "@angular/core"; -import { BrowserModule } from "@angular/platform-browser"; +import { BrowserModule} from "@angular/platform-browser"; +import { BrowserAnimationsModule } from "@angular/platform-browser/animations"; import { AppComponent } from "./app.component"; import { FormsModule } from "@angular/forms"; @@ -8,7 +9,6 @@ import { PlanDisplayModule } from "./plan-display/plan-display.module"; import { ConfigService } from "./services/config.service"; import { ColorPickerComponent } from './color-picker/color-picker.component'; import { MatButtonModule } from "@angular/material/button"; -import { CarouselComponent } from './carousel/carousel.component'; export function initializeApp(configService: ConfigService) { return (): Promise => { @@ -26,6 +26,7 @@ export function initializeApp(configService: ConfigService) { FormsModule, PlanDisplayModule, MatButtonModule, + BrowserAnimationsModule, ], providers: [ { diff --git a/src/app/carousel/carousel.component.html b/src/app/carousel/carousel.component.html index e8a498a..6302481 100644 --- a/src/app/carousel/carousel.component.html +++ b/src/app/carousel/carousel.component.html @@ -1,18 +1,19 @@ -