CSS for fixed/centered throbber

Created on 10 October 2018, about 7 years ago
Updated 5 September 2025, about 1 month ago

Hello,

I thought this might be some useful copy/paste CSS for others to use, since the throbber only exists in the live code during the AJAX transition (making it difficult to "grab" with code inspector). I used the CSS to center the throbber vertically and horizontally, and to overlay the entire page with faded white (you can change the RGB values and opacity to whatever you wish).

.ajax-progress {
    position: fixed;
    z-index: 99999999;
    background: rgb(255,255,255,0.6);
    text-align: center;
    width: 100%;
    height: 100%;
    top:0;
    left:0;
}
.ajax-throbber {
    left: 0;
    position:absolute;
    right:0;
    top: 50%;
    transform: translateY(-50%);
}
✨ Feature request
Status

Closed: works as designed

Version

1.1

Component

Miscellaneous

Created by

πŸ‡ΊπŸ‡ΈUnited States hockey2112

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024