NISHVAULT

Free source kit · Practical guide

Build a CSS circle loader and export HTML with Ringwait

Choose a circle animation, apply a readable status label, and take the HTML and CSS into an existing page. This walkthrough also shows what to save, what the downloaded demo actually does, and where your real application logic begins.

Ringwait is a complete free HTML/CSS circle-loader source kit. It includes three original geometries—Arc, Orbit and Ripple—a configurator, JSON settings, and a standalone integration example. You can use the browser editor or open app/index.html from the extracted ZIP without a server, account, runtime dependency or network connection.

A moving circle is not a progress measurement. Ringwait’s two-second demo runs locally and sends no real request. Its 1,800 ms animation cycle in the example below controls motion speed; it does not predict when an upload, export or other operation will finish.

1. Configure a loader, then apply it

  1. Choose Orbit. Arc gives you an open rotating ring; Orbit adds a moving accent over a dotted ring; Ripple changes scale and opacity.
  2. Set the label to Preparing the atlas preview, accent to #70452a, size to 64 px, stroke to 3 px, and cycle to 1,800 ms.
  3. Select Apply settings. The preview, generated snippet and local demo update together. Editing a form field alone does not change what is exported.
  4. Use Copy HTML+CSS to take the applied component into your page. If browser clipboard access is unavailable, Ringwait selects the code so you can use the browser’s copy command, or select the read-only text yourself.

The supported controls accept a six-digit accent hex, a size from 24–96 px, a stroke from 2–8 px, and a cycle from 400–4,000 ms. Keep the status wording specific to the work happening in your own page. The animated geometry is decorative; the adjacent status text carries the meaning.

2. Save the applied settings as JSON

Save JSON keeps the applied configuration for later editing. This is the exact configuration used in the current independently checked save-and-reopen example:

{
  "version": 1,
  "variant": "orbit",
  "label": "Preparing the atlas preview",
  "color": "#70452a",
  "size": 64,
  "stroke": 3,
  "duration": 1800
}

Save that file, open another configuration such as the shipped samples/upload.ringwait.json, and then reopen your saved file. The independent check downloaded a second JSON after reopening it and verified that the two files were byte-identical. That is evidence of this configuration round trip, rather than a promise that every possible input has been tested.

Ringwait has no storage or auto-save. Save a JSON file before you close the editor if you want to keep the configuration. Invalid, unsupported or over-20 KB JSON files preserve the last applied preview instead of replacing it.

3. Download HTML and open the actual file

Choose Download HTML and open the downloaded file in a browser. The standalone example contains the applied loader, readable label and local simulation. In the checked export, the Orbit geometry retained the brown accent, 64 px size and atlas label.

  • Run the demo to inspect its pending and completed states.
  • Enable Simulate failure and run it again to inspect the error and retry flow.
  • Start an operation and cancel it. Confirm that your typed project note remains.
  • Pause motion, and check the page with your system’s reduced-motion setting.

The CSS-only loader snippet works without JavaScript. The configurator and interactive local simulation need JavaScript; the exported page explains that limitation and retains its static loader example and readable status.

4. Connect the states to real work

The kit’s examples/integration.html demonstrates two independent operations. Its src/runtime.js is an optional local simulation, not an upload client or hosted API. Replace the fixed timer with your actual operation, and handle success, failure, cancellation and stale responses.

Use the demo as a state checklist
StateWhat your integration needs to do
PendingShow the loader and meaningful status, and mark the region whose content is loading as busy.
SuccessClear the busy state, stop showing the loader for that operation, and display the actual result.
FailureClear the busy state, preserve entered notes where appropriate, and offer a useful next action.
CancelledEnd that operation’s pending state without disturbing another instance. Ignore a stale completion from the cancelled operation.

In Ringwait’s integration example, native buttons retain focus and Cancel returns focus to Run when it disappears. The readable live status sits outside the surrounding busy region. Do not announce every animation frame or leave the spinner running after the real operation ends. If your operation has no measured percentage, keep its presentation indeterminate.

Motion, integration and coverage limits

The system reduced-motion preference and explicit pause disable movement, including Orbit’s pseudo-element. Check the label’s readability, foreground contrast and geometry against your actual page. Ringwait’s documented release coverage is Chromium desktop and mobile touch emulation; it is not physical-device testing, an all-browser guarantee or comprehensive assistive-technology certification.

For source changes, the complete ZIP includes the imported source, tests and build/package scripts. Its README documents the commands below from the extracted ZIP root, using existing Node 18+ and Python 3. No npm install is needed:

npm test
npm run build
python3 scripts/package.py

The free release includes the defined source kit and setup notes. It does not include a hosted service, real upload/API, guaranteed personal support, SLA, updates or promised results. Personal and commercial finished-project use follows the included license; source-package redistribution and resale restrictions remain.

Take a useful first output

Apply one configuration, save its JSON, and reopen the actual HTML export. Once that output behaves as expected, use the integration example to connect its states to real work.