How can implement animated splash screen in ionic capacitor

How can implement animated splash screen in ionic capacitor , is there any plugin to do that , please guide me to do that

Thanks in advance


If you’re using the Ionic extension for VSCode it will guide you to do that. You will still have to do some tinkering for Android, here is a guide for that as well:

To add an animated splash screen in Ionic with Capacitor, install the capacitor-splash-screen plugin (npm install @capacitor/splash-screen). Then, create a custom splash screen using HTML, CSS, and JavaScript. After the app loads, hide the default splash screen with SplashScreen.hide() and trigger your animation. For more complex animations, use a full-screen component.

To do this you can use the native SplashScreen plugin that comes with Capacitor, but for animation, you need to go a bit further. First, disable the default splash screen auto-hide by setting launchShowDuration to 0 in capacitor.config.ts. Then, create your own custom animated splash using an HTML page with CSS or Lottie animation. Show this animation right after the app loads using a full-screen component or modal, and hide it with JavaScript after a few seconds or when the app is ready. There is no official plugin for animated splash, but using this method gives you full control and works smoothly.