splash-screen
A splash screen is required from end-user's perspective while developing SPA based application, cause that static resources usually concatenated into only one file in production release which might cost few seconds in loading phase.
A splash screen is great to be loaded parallel with the application part. Once the application part loaded, destroy
splash-screen
and display the application.
Install
bower
bower install --save splash-screen
npm
npm install splash-screen
Usage
Import CSS
<!-- all-in-one-css --> <!-- specific-theme-css -->
Typescript
//import all-in-one-bundle//import splash-screen/dist/splash-screen.min.css here if you are using webpack, or inject it in your html; //enable with a specific theme.//Possible themes are: 'tailing', 'audio-wave', 'windcatcher', 'spinner-section', 'spinner-section-far', 'circular'.enable'tailing'; //destory the splashdestory;
//import specific bundle//import splash-screen/dist/splash-screen-[theme].min.css here if you are using webpack, or inject it in your html; //enable with no argenable; //destory the splashdestory;
ES2015
Same as above
CommonJS
//import all-in-one-bundle//import splash-screen/dist/splash-screen.min.css here if you are using webpack, or inject it in your htmlconst enable destory = ; //enable with a specific theme.//Possible themes are: 'tailing', 'audio-wave', 'windcatcher', 'spinner-section', 'spinner-section-far', 'circular'.; //destory the splash;
//import specific bundle//import splash-screen/dist/splash-screen-[theme].min.css here if you are using webpack, or inject it in your htmlconst enable destory = ; //enable with no arg.; //destory the splash;
Script
<!-- import all-in-one-bundle -->
<!-- import specific bundle -->
Themes
Multiple themes can be used while enable splash. Available themes: tailing
, windcatcher
, audio-wave
, spinner-section
, spinner-section-far
, circular
.
You would like to see real demo: splash-screen