From 045bb89702c4d54de387964933706b1f157a3629 Mon Sep 17 00:00:00 2001 From: Arne Vlaeminck Date: Thu, 7 Nov 2024 18:07:36 +0100 Subject: [PATCH] fixed animations --- src/app/toggle/toggle.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/toggle/toggle.component.ts b/src/app/toggle/toggle.component.ts index 7907b34..a1c71a6 100644 --- a/src/app/toggle/toggle.component.ts +++ b/src/app/toggle/toggle.component.ts @@ -56,7 +56,7 @@ export class ToggleComponent { const newValue = !this.isDarkMode(); setTimeout(() => { this.toggleOn.emit(newValue); - }, this.isDarkMode() ? 670 : 535); + }, this.isDarkMode() ? 670 : 350); setTimeout(() => { this.isDarkMode.set(!this.isDarkMode());