Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is It possible to set .gif as ionic2 splash screens intead of .png?

I have working on Ionic 2 project and want to set a .GIF image as splash screen . If it is possible then please guide me how to set the same .

like image 422
Devang Mistry Avatar asked Apr 29 '17 05:04

Devang Mistry


2 Answers

No. Splash screens are converted to platform specific resources, which is displayed while all the Ionic runtime is initializing. Both Android and iOS only supports static images for this.

You may be able to display something cool while performing asynchronous network requests. This has to be after the app is initialized, of course.

like image 158
Tatsuyuki Ishi Avatar answered Nov 28 '22 05:11

Tatsuyuki Ishi


It is not possible to do directly, but there are some workarounds, for example using the SVG animation.

enter image description here

Check this tutorial from joshmorony.com:

https://www.joshmorony.com/creating-an-animated-splash-screen-in-ionic/

Hope it helps!

like image 29
Pablo Albaladejo Avatar answered Nov 28 '22 03:11

Pablo Albaladejo