Smooth Page Transition

Enable Smooth Page Transition

Click on the Smooth Page Transition section, then navigate to General sub section, you can find the option to enable the “Smooth Page Transition” feature.

After you enable the Smooth Page Transition feature, when you click an internal link and leave the current page, the loader will appear with animation again, to fulfil the blank between pages.

Please check this demo site to preview the feature: http://demo.loftocean.com/loftloader-transition/

By default, only the background will show immediately when clicking an internal link. If you want to show other elements (loader/message/progress bar), please enable Show all elements when leaving the current page option. This option is newly added since version 2.1.

Internal Links: they are links that go from one page on a domain to a different page on the same domain.
Please note: this feature only works when clicking an internal < a > link. This feature cannot be triggered when clicking on a JavaScript-driven < button >.

Since each website may use JavaScript-driven buttons to achieve different goals (such as clicking the button to pop up a subscription form or banner ad, or refreshing only a part of a page via AJAX, etc.), it is very complicated to detect if a button is used to link to another internal page of a website.

Please note: to get the best result of this feature, we suggest:

  1. Use the same loader on one site: Do not enable “Any Page Extension” and use different loader shortcodes for different pages on one site.
  2. Choose to display the loader sitewide: every page/post on your site.
  3. It would be better not to use a semi-transparent loader background.

And please note: this feature WILL NOT work for the situations listed below:

  • When choose to display the pre-loader “Once Per Session”.
  • When open the link in a new tab/window.
  • When a page uses LoftLoader shortcodes (with “Any Page Extension” enabled).
  • When a page/post doesn’t have a pre-loader according to your “Display On” settings.
  • When clicking on a JavaScript-driven button (<button>).

Please note: the options in the Smooth Page Transition section only work on front end. It means when you change the settings, nothing will happen in the preview area. Save the changes you have made, they will be applied to your site. Please remember to clear your site cache and browser cache before checking your front-end.

Additional Display Options

When enabling “Smooth Page Transition” feature, you will find the “Additional Display Option” sub section:

Additional Display Option 

  • Default 
  • Only show loader during page transition 
  • Show the loader on the current page only when leaving the page

Please check the table below to learn the differences between the 3 options:

DefaultOnly Show loader during page transitionShow the loader on the current page only when leaving the page
Load/Refresh the pageLoader showsNo LoaderNo Loader
Click on an internal linkLoader showsLoader showsLoader shows
About to leave the current pageLoading progress reaches 60%Loading progress reaches 60%Loading progress reaches 100%
New page is open and loadingLoader Shows. The loading progress continues counting from 61%Loader Shows. The loading progress continues counting from 61%Loader disappears (without ending animation)
New page is loaded Loading progress reaches 100%. Loader disappears (with ending animation).Loading progress reaches 100%. Loader disappears (with ending animation).No Loader

The screencasts of the loading process

For “Default” and “Only show loader during page transition“, when clicking on an internal link, the loader will show. You can see that the loader is keeping displayed when you leave the old page and when the new page is opened and loading. And you will see the ending animation of the loader.

For “Show the loader on the current page only when leaving the page“, you can see that the loader has disappeared the moment a new page is opened. And you will not see the ending animation of the loader.

When Leaving Current Page

Reverse Background Animation Direction When Reappearing:

When the “Smooth Page Transition” feature is activated, when a page link is clicked, the loader will appear immediately. At this time, the animation that appears in the background of the loader is actually the opposite of the “background end animation” you set. For example, if you set the end animation of the loader background to “Slide Up”, then when you click on a page link to make the loader reappear, the loading screen background will re-enter the page with a slide down animation.

If you would like to reverse this animation, please go to Smooth Page Transition > When Leaving Current Page > Enable the “Reverse Background Animation Direction when Reappearing” option.

Control the Progress Indicator:

When the “Smooth Page Transition” feature is activated, when jumping between pages of the same website, the loader that the viewer sees is actually displayed in two stages:

  1. Stage 1 – After clicking a page link, the loader appears immediately.
  2. Stage 2 – After the new page is opened, the loader continues to display.

When the loading screen contains any element that shows the loading progress, such as: progress bar, loading percentage, etc., you can set where the loading progress stays when leaving the current page, and how long you want to stay on the current page.

Trigger on Buttons (BETA)

By default, the “Smooth Page Transition” feature only works on internal links (< a >), not on JavaScript-driven buttons ().

Since each website may use JavaScript-driven buttons to achieve different goals (such as clicking the button to pop up a subscription form or banner ad, or refreshing only a part of a page via AJAX, etc.), it is very complicated to detect if a button is used to link to another internal page of a website.

With requests and suggestions from users, we have currently (maybe) found a way to make this feature work on specific buttons. That is, in a similar way to excluding specific internal links, let users manually select some buttons to trigger this feature.

In the settings panel, please navigate to “Smooth Page Transition” > “Trigger on Buttons (BETA)“, you can use class name(s) to locate the buttons. You can also use ids. Please refer to the screenshot below.

Please kindly note that this is still a beta version. Please use with caution.