Skip to content
All Answers
General

How do I add a loading spinner to Squarespace?

Squarespace 7.1 doesn't have a built-in page loading spinner. You can add one by injecting a spinner overlay via code injection and hiding it once the page loads with a small JavaScript snippet.

Create a pure CSS spinner using a border animation on a circular element. The overlay covers the entire viewport and fades out once the DOM is ready.

/* Add to Custom CSS */
.page-loader {
  position: fixed;
  inset: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.4s ease;
}
.page-loader.loaded { opacity: 0; pointer-events: none; }
.page-loader .spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #eee;
  border-top-color: #111;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
Generate this with our Animation GeneratorTry it free →

Related Questions

General

How do I find the CSS selector for any element in Squarespace?

General

How do I change the background color of a specific section in Squarespace?

General

How do I hide a specific element by its ID in Squarespace?

General

How do I add a back-to-top button in Squarespace?

A little over your head?

No shame — this stuff is hard. Let the pros handle it.

Long Drive MarketingTalk to Long Drive Marketing →