Skip to main content

WordPress Page Transitions

Animated page transitions play when a visitor moves from one page to the next, so the site changes over rather than blanking out and redrawing. Salient builds them in as a theme option: no plugin, no code, and no build step.

Transition Method​

Salient can run page transitions two ways, set by Transition Method at the top of this tab.

MethodWhat it does
Simulated with JS (Legacy)Fades the page out and in with JavaScript. Works in every browser, but cannot animate between the two pages, so it is a fade rather than a true transition.
View Transitions API (Modern)Hands the animation to the browser’s own View Transitions API, which can animate the outgoing and incoming pages together. This is the smoother option and the one to use unless you need the legacy fallback.

The effect options below change depending on which method is selected. The legacy method offers the fade and swipe effects documented further down; the View Transitions API offers the four effects here.

View Transitions effects​

Fade cross-fades the two pages.

Horizontal Gradient Wipe wipes the new page across the old one behind a soft gradient edge.

Vertical Reveal slides the new page up over the outgoing one, which dims and holds its position.

Vertical Reveal Scale does the same, and scales the outgoing page down slightly as it goes, so it reads as receding behind the new page.

Browser support

The View Transitions API is supported in current Chrome, Edge and Safari. A browser without it navigates normally, with no transition and nothing broken, so the modern method is safe to use as the default.

  • Animated Page Transitions Toggle Enables an animation between loading your pages. Allows for a smooth user experience and ensures that all JavaScript elements have initialized before the user sees the page.
  • Disable Fade Out On Click Toggle Disables the default fade out of your page when clicking a link with the Standard transition method. Useful if your page transitions conflict with third party plugins that take over certain anchors, such as lightboxes.
  • Disable Page Transitions On Mobile Toggle Removes page transitions when viewed on a mobile device (produces faster loading).
  • Transition Effect Choice With the legacy method the available options are Fade with loading icon and Center mask reveal. When using Center mask reveal (as seen in the corporate demo), the loading icon options below won’t be available, as there is no loading icon with that transition effect.
  • Loading Icon Style Choice Currently there are two styles available. The images below show how they look:

Salient's default page transition spinner, a thin grey ring with a short cyan arc

Default Style

Salient's Material page transition spinner, a thick coral arc that sweeps around an open circle

Material Design Style

  • Loading Icon Coloring Gradient The icon animates between the two colors, or uses only the first if a second is not supplied.
  • Custom Loading Image Media Upload a .png or .gif image to use as the loading image in all applicable areas on your site.
  • Loading Image CSS Animation Choice Adds a CSS based animation to your defined image.
  • Page Transition BG Color Color Sets the color of your page transition background. Used in both the Fade with loading icon and Center mask reveal transition effects.