DEVELOPER TOOLS · WEB DESIGN
Progress bar and loading animation generator
Utilities for code and web development.
Create a loading indicator for a website, application or form without writing CSS animations by hand. Choose a progress bar, spinner, dots, wave, equalizer, DNA helix, hourglass or sparkles and see the result instantly.
Customize colors, size, radius, speed, text and placement. Choose a full-page preloader or a top loading bar for a page, or a determinate progress bar updated by your own application.
Copy code or download HTML, CSS, JavaScript and a ZIP containing a ready-to-run integration example. Generation and preview run in your browser; exports require no third-party libraries, CDN or server processing.
Create your loader
Live preview
Ready-to-use website code
Download a ZIP for a ready-to-run example or copy each file separately. Adjust CSS and JS paths to match your site.
Quick guide: what goes where
- Choose a template and mode. Settings and the preview update automatically.
- Copy or download the files. Link loader.css inside head using link rel="stylesheet".
- Insert the loader HTML inside body. Put a full-page preloader or top bar immediately after the opening body tag; put an inline animation or progress bar where it should appear.
- Load loader.js immediately after the loader markup. If you move the files, update the link and script paths.
For a determinate progress bar, call this after loader.js has loaded:
document.getElementById('et-loading').etLoader.set(42);Replace et-loading with your unique ID and 42 with the actual percentage of your task. Use .hide() to hide manually or .finish() to complete.
Technologies used by the generator and exported code
- JavaScript — ECMAScript 2026 (ES2026): used for loader control, the progress API and ZIP creation in the browser.
- HTML — HTML Living Standard; Popover API: loader markup. The Popover API is not used; the help panel uses the native dialog element.
- CSS — CSS Snapshot 2026: styling and animations; prefers-reduced-motion is respected.
- CSS Anchor Positioning Level 1: not used: this interface does not require anchor-based positioning.
- WebAssembly 3.0 (Core Specification 3.0) + WASI Preview 2: not used: code generation, preview and ZIP export do not require WASM or a server runtime.
How to use a CSS preloader and progress bar
The preloader hides on DOM readiness, full page load or your own JavaScript call. Automatic mode includes a timeout so the overlay cannot remain indefinitely.
For uploads, requests and other tasks with measurable work, pass the actual percentage to the API. Browsers do not report a universal exact page-load percentage, so the top bar uses indeterminate progress.
Frequently asked questions
What can I build?
Create a progress bar with a measured percentage, an inline loading animation, a full-page loader, or a page-edge loading bar. There are 18 templates; five bar templates support measured progress.
Does it measure the exact page-load percentage?
No. Browsers do not expose a universal, accurate percentage for an entire page load. For measured progress, your application must supply the percentage of completed work. The page loading bar uses an indeterminate animation.
How do I update the progress percentage?
After loader.js loads, access document.getElementById("your-ID").etLoader and call set(42) to show 42%. Supply updates from your actual task, such as a file upload. Measured progress is available for bar templates.
What is included in the ZIP?
The ZIP contains index.html as a standalone demo, loader.css and loader.js for styling and behavior, snippet.html for integration, and README.txt with setup steps and the API. The archive is generated in your browser.
Where do I put the generated files?
Link loader.css in the head, place the loader markup inside the body, and load loader.js immediately after that markup. Put page loaders at the start of the body and inline indicators where users should see them. Adjust file paths for your site.
Should I use load or DOMContentLoaded?
DOMContentLoaded signals that the DOM is ready while resources such as images may still be loading. The load event waits for the page and the dependent resources covered by that event. Choose the event that matches what your loader needs to cover.
How do I control a loader around my own request?
Choose manual control. Call show() before the operation and hide() when it finishes, including the error path. finish() sets 100% where supported and hides page loaders. Use hide() separately to remove an inline indicator.
Can the loader get stuck over my page?
Automatic modes include a configurable timeout of 1–60 seconds while JavaScript is running. In manual mode, your code is responsible for hiding the loader. Test failed and stalled requests when integrating it.
What happens if JavaScript is disabled?
The full-page loader stays hidden so it does not block the page. An inline CSS animation can still display, but automatic control and updates to measured progress require JavaScript.
Can I use multiple loaders on one page?
Yes. Give each loader a unique ID and include its generated styles and code. Access each API through the element with that ID. Duplicate IDs prevent reliable targeting.
Does the output respect reduced motion?
Yes. The exported CSS uses prefers-reduced-motion to disable animations and transitions when reduced motion is requested. Check the contrast of your chosen colors and make sure the loader text remains clear.
Why are some controls disabled?
Controls are disabled when they do not apply to the selected template or mode. Percentages apply to measured bars, placement applies to page bars, and hide events apply to page loaders. This does not indicate a generation error.
Does the generated loader need PHP, a library, or a CDN?
No. The output is HTML, CSS, and JavaScript and can run on static or shared hosting. With a strict Content Security Policy, serve the files from an allowed source. Keeping the CSS on the same origin lets the script update progress through the stylesheet.
Are my settings saved or uploaded?
Settings are saved in this browser when localStorage is available. Generation, preview, and ZIP creation run on your device. The site separately uses visit analytics. Switching languages adapts the default loading label while preserving your custom text.