You can try this.
https://ihatetomatoes.net/create-custom-preloading-screen/
or you can research follow these keywords to know more detail.
- how to use CSS3 transitions
- how to animate out a full-screen preloader
- how to combine CSS3 with JavaScript for this technique