Jump to content

How can I achieve smoother page transitions? Or add a loading animation while a page loads?

Recommended Posts

Site URL: https://butterfly-fox-sw8m.squarespace.com/

PW to access site is DivineTiming

When I switch between pages, there is a flash of white. I am looking to eliminate or "hide" this flash of white with either an animated loading image, or somehow achieve a smoother transition between pages. 

An example of page transitions I like is -- http://www.dreamville.com/

Any help on this would be greatly appreciated. Thank you!


Link to comment
  • 4 months later...
  • Replies 1
  • Views 1.2k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

I was having this issue on page load/page switch. The pages displayed in full for a ms before doing the fade-in site wide animation.

This is what I used to fix it (add to custom css section in settings)

body:not([data-animation-state="booted"]) > * {
  opacity: 0;

This waits for the 'data-animation-state' attribute to be added to body before showing any elements, essentially skipping the full display that happens before the animations are queued


Hope this helps!

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.