Skip to content

Kavita is a fast, feature rich, cross platform reading server. Built with the goal of being a full solution for all your reading needs. Setup your own server and share your reading collection with your friends and family.

Configure Animation Module (#1504)

Ocgineer00159378ce16
diff --git a/UI/Web/src/app/app.module.ts b/UI/Web/src/app/app.module.ts
index 858f83b64..968380027 100644
--- a/UI/Web/src/app/app.module.ts
+++ b/UI/Web/src/app/app.module.ts
@@ -14,7 +14,9 @@ import { SidenavModule } from './sidenav/sidenav.module';
import { NavModule } from './nav/nav.module';
-
+// Disable Web Animations if the user's browser (such as iOS 12.5.5) does not support this.
+const disableAnimations = !('animate' in document.documentElement);
+if (disableAnimations) console.error("Web Animations have been disabled as your current browser does not support this.");
@NgModule({
declarations: [
@@ -24,7 +26,7 @@ import { NavModule } from './nav/nav.module';
HttpClientModule,
BrowserModule,
AppRoutingModule,
- BrowserAnimationsModule,
+ BrowserAnimationsModule.withConfig({ disableAnimations }),
SidenavModule,
NavModule,
ToastrModule.forRoot({