Effective Page Transitions in Divi
Divi Transitions is a new plugin that aims to bring effective page transitions to Divi.
Fade to Background
The plugin's default transition is "Fade to Background". When the user leaves the page, rather than hanging around for a while, the current page content is gracefully faded out.
Once the content fades out, the user will see the background color or image set in Divi, which makes it the perfect opportunity for building a bit of brand awareness.
Looking for something more striking? Then the block out transition may be just the thing. When the user leaves the page, the old content will be erased with random blocks until it is gone.
While it will usually be best to match the block color to the Divi background color (as that is what users will see when the next page starts to load), you're not limited to it. You can choose any block color you desire, even semi-transparent.
Wait, what are page transitions?
How do I set the background that gets faded to?
Divi > Theme Customizer > General Settings > Background
Are the transitions reliable? I've had problems with other transitions plugins in the past.
Yes, a key goal of Divi Transitions is reliable transitions that work well with Divi.
Divi Transitions addresses several issues seen in other page transitions plugins:
- Transition is incorrectly triggered by links where the page is not actually left, e.g. when link opened in a new tab or the link triggers an on-page effect
- Transition effect (e.g. fade out) remains in place when returning to the page, e.g. using the "back" button.
- Transitions are being triggered within the visual builder
The root cause of the first two issues is that other page transition plugins typically take the approach of intercepting link clicks, which necessitates handling all the special cases of functionality that links allow. Divi Transitions instead uses a simpler, more reliable method – it triggers the effect only when the browser indicates that the current page is being unloaded.
Divi Transitions is Divi-aware and provides better handling of links in Divi modules and the visual builder that other transitions plugins.
Does Divi Transitions delay the page load while showing the animation?
Instead, when the browser signals a "beforeunload" event (indicating that it is leaving the page), Divi Transitions immediately adds a class to the page. This class triggers a CSS animation, but the browser won't wait for it to complete – it will get straight to work loading the next page. The animation will run while this is happening, without blocking it.
So Divi Transitions shouldn't slow down the load of the next page at all.