can create web animations with PNG, JPEG, and GIF image formats or It consists in appending hidden div s and setting their background-image property to The usual workaround to prevent having to download multiple. Also handling the ul, li and the required div tag to the image format. When user click on Download button, then first change the document into. Free download loading gif images and use these 7 + 10 cool pre-loading icons. loaded or show a spinner gif while an HTML element or div is being loaded.
Display a loading icon until the page loads completely
Isn’t it a great idea to show a cool animated image until your website is loading? Of Course, it will improve your site’s user experience.
Let’s learn how to use jQuery and CSS to show loading image while page loading. Free download loading gif images and use these 7 + 10 cool pre-loading icons.
Bonus: Canva is an excellent tool to design blog images, social banner, business cards, posters, infographics, resumes, and other visual graphics. It has a very user-friendly drag and drop interface that makes your job easy, so anyone can easily create beautiful graphics.
Canva also provides pre-made templates for posters, logos, cards, resumes, flyers, powerpoint presentations, and many more. It’s a wonderful tool that designers and non-designers both can use to create beautiful and appealing images.
How to show a Responsive loading icon or image while page loads.
1. Add a div just after <body> tag.
2. Add some CSS to show the icon and bring it in the middle of the page.
3. Now add some jQuery to show the pre-loading icon when the page is loading and hide when it has finished loading.
All done, now reload your page and it will show a loading icon.
Many of you have been searching for a way to show a loading gif while actual image is being loaded or show a spinner gif while an HTML element or div is being loaded. Let’s learn how to show a loading icon over each image on your site while the image is loading, using jQuery.
How to show loading gif while actual image is loading – Very simple method.
1. Add the following script to < head >.
The loadImg.js contains the plugin which will automatically detect the images on the page and hides it while the images are not loaded completely. Until then it will show a loading icon. You can change the ‘img’ to any div or class on which you want to show the spinner while it is loading.
The plugin loadImg.js contains the following code.
2. Add some markup having some images.
3. Add some CSS code. Please make sure that the images have specific width and height so that the loading icon may be displayed in the center.
That’s all for the codes. You will able to show a loading icon over each image on the page while actual images are not fully loaded.
The final page would look like
In the above demo, we have bundled 17 cool loading icons which you can use for your free and commercial project. If you want more icons just go to
This way we can show the loading image while your webpage is loading and while an image is completely loaded. I hope this simple preloader will help you improve your site’s user experience. If you get any difficulty using the codes to your website then do comment below. Feel free to contact me for any help.
Subscribe to our email list to get updates to this post.