118
SHARES
30 CSS Page Preload Animations
March 27, 2015
25 comments
2,168,996
I have created 30 CSS page preload animations that used only CSS for the animation, jQuery was used just to hide the animation. You can hide the loading screen just by clicking anywhere on the screen.

Those animations are best suited for content that takes some time to load like an image gallery.

The animations are very easy to customize since they are made out of just CSS, you will have to change jQuery code so that it fades out the loading screen once the content loads. I will explain to you how the first example works.

HTML

The HTML for this example only has four elements that are used for the animation and out of four elements only one is animated.

CSS

First we have to create a fixed div element that can float above everything.



Second we have to create a center spot that always will remain centered.



Third and the last thing we have to do is to animate "#object" using keyframes. You will notice that i used keyframe twice '@-webkit-keyframes' and '@keyframes animate' first is for webkit based browsers second one is for internet explorer.

JavaScript

In the provided demo i have set the JavaScript to hide the animation when you click on it.



In the final product you would want something like this:



This will hide the animation once the content of the page is loaded.
118
SHARES
54
51
8
About the author
Popa Robert: Is the founder of Simbyone.com, freelance web developer and designer, he likes to create beautiful websites and water cooled PC's
25 Comments
Robert Popa
March 30, 2015
Sure, what is the problem you are having ?
salman
October 30, 2015
it is not animating out my original webpage
Yuddy Hernández
November 4, 2015
Muchas gracias !!!!! :)
Apurba
March 8, 2017
Thanks man. Just awsome.
Would you like to share your thoughts?
Name:*
Email:*
Website:
Message:*
Fields marked with * are mandatory. We don't share your email with anyone. Email provided in the above fields are used for identification only. If you chose to subscribe to our newsletter you can cancel at any time.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
Hot Posts
2,168,997
25 comments
107,139
0 comments
209,174
0 comments