{"id":119,"date":"2018-01-17T06:54:44","date_gmt":"2018-01-17T06:54:44","guid":{"rendered":"http:\/\/loftocean.com\/doc\/loftloader\/?page_id=119"},"modified":"2022-11-29T05:14:53","modified_gmt":"2022-11-29T05:14:53","slug":"enable-smooth-page-transition","status":"publish","type":"page","link":"https:\/\/loftocean.com\/doc\/loftloader\/smooth-page-transition\/enable-smooth-page-transition\/","title":{"rendered":"Enable Smooth Page Transition"},"content":{"rendered":"<p>Click on the <strong>Smooth Page Transition<\/strong> section, then navigate to <strong>General<\/strong> sub section, you can find the option to enable the <strong>&#8220;Smooth Page Transition&#8221; <\/strong>feature.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-779 size-full\" src=\"https:\/\/loftocean.com\/doc\/loftloader\/wp-content\/uploads\/sites\/3\/2022\/11\/spt-new.png\" alt=\"\" width=\"2210\" height=\"1588\" srcset=\"https:\/\/loftocean.com\/doc\/loftloader\/wp-content\/uploads\/sites\/3\/2022\/11\/spt-new.png 2210w, https:\/\/loftocean.com\/doc\/loftloader\/wp-content\/uploads\/sites\/3\/2022\/11\/spt-new-300x216.png 300w, https:\/\/loftocean.com\/doc\/loftloader\/wp-content\/uploads\/sites\/3\/2022\/11\/spt-new-1024x736.png 1024w, https:\/\/loftocean.com\/doc\/loftloader\/wp-content\/uploads\/sites\/3\/2022\/11\/spt-new-768x552.png 768w, https:\/\/loftocean.com\/doc\/loftloader\/wp-content\/uploads\/sites\/3\/2022\/11\/spt-new-1536x1104.png 1536w, https:\/\/loftocean.com\/doc\/loftloader\/wp-content\/uploads\/sites\/3\/2022\/11\/spt-new-2048x1472.png 2048w\" sizes=\"auto, (max-width: 2210px) 100vw, 2210px\" \/><\/p>\n<p>After you enable the <strong>Smooth Page Transition<\/strong> feature, when you click an internal link and leave the current page, <span class=\"highlighted\">the loader will appear with animation again<\/span>, to fulfil the blank between pages.<\/p>\n<p>Please check this demo site to preview the feature: <a href=\"http:\/\/demo.loftocean.com\/loftloader-transition\/\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/demo.loftocean.com\/loftloader-transition\/<\/a><\/p>\n<p><!--<span class=\"highlighted\">Please note:<\/span> Only the background will show again when leaving the current page. The other elements in the loading screen (the loader, message, progress indicator) will only show after the new page starts loading, because they are a part of the HTML of the new page. If we also display these elements when leaving the current page, these elements are very likely not to be displayed after jumping to the new page until the server responds to the request to start loading the HTML of the new page.--><\/p>\n<p>By default, <span class=\"highlighted\">only the background<\/span> will show immediately when clicking an internal link. If you want to show other elements (loader\/message\/progress bar), please enable <span class=\"highlighted\">&#8220;<strong>Show all elements when leaving the current page<\/strong>&#8220;<\/span> option. This option is newly added since version 2.1.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-780\" src=\"https:\/\/loftocean.com\/doc\/loftloader\/wp-content\/uploads\/sites\/3\/2022\/11\/spt-new-2.png\" alt=\"\" width=\"2210\" height=\"1588\" srcset=\"https:\/\/loftocean.com\/doc\/loftloader\/wp-content\/uploads\/sites\/3\/2022\/11\/spt-new-2.png 2210w, https:\/\/loftocean.com\/doc\/loftloader\/wp-content\/uploads\/sites\/3\/2022\/11\/spt-new-2-300x216.png 300w, https:\/\/loftocean.com\/doc\/loftloader\/wp-content\/uploads\/sites\/3\/2022\/11\/spt-new-2-1024x736.png 1024w, https:\/\/loftocean.com\/doc\/loftloader\/wp-content\/uploads\/sites\/3\/2022\/11\/spt-new-2-768x552.png 768w, https:\/\/loftocean.com\/doc\/loftloader\/wp-content\/uploads\/sites\/3\/2022\/11\/spt-new-2-1536x1104.png 1536w, https:\/\/loftocean.com\/doc\/loftloader\/wp-content\/uploads\/sites\/3\/2022\/11\/spt-new-2-2048x1472.png 2048w\" sizes=\"auto, (max-width: 2210px) 100vw, 2210px\" \/><\/p>\n<div style=\"border: 1px solid #eee; background: #fff; padding: 30px; margin-bottom: 30px;\"><span class=\"highlighted\">Internal Links:<\/span> they are links that go from one page on a domain to a different page on the same domain.<\/div>\n<div style=\"border: 1px solid #eee; background: #fff; padding: 30px; margin-bottom: 30px;\"><span class=\"highlighted\">Please note:<\/span> this feature only works when clicking an internal &lt; a &gt; link. This feature <strong>cannot be<\/strong> triggered when clicking on a JavaScript-driven &lt; button &gt;.<\/p>\n<p>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.<\/p>\n<\/div>\n<p><span class=\"highlighted\">Please note:<\/span> to get the best result of this feature, we suggest:<\/p>\n<ol>\n<li>Use <strong>the same loader<\/strong> on one site: <span class=\"highlighted\">Do not<\/span> enable <strong>\u201cAny Page Extension\u201d<\/strong> and use different loader shortcodes for different pages on one site.<\/li>\n<li>Choose to display the loader <strong>sitewide<\/strong>: every page\/post on your site.<\/li>\n<li>It would be better <strong>not to<\/strong> use a semi-transparent loader background.<\/li>\n<\/ol>\n<p><span class=\"highlighted\">And please note:<\/span> this feature <strong>WILL NOT<\/strong> work for the situations listed below:<\/p>\n<ul>\n<li>When choose to display the pre-loader <strong>\u201cOnce Per Session\u201d<\/strong>.<\/li>\n<li>When open the link in a <strong>new<\/strong> tab\/window.<\/li>\n<li>When a page uses LoftLoader shortcodes (with <strong>\u201cAny Page Extension\u201d<\/strong> enabled).<\/li>\n<li>When a page\/post doesn\u2019t have a pre-loader according to your <strong>\u201cDisplay On\u201d<\/strong> settings.<\/li>\n<li>When clicking on a JavaScript-driven button (&lt;button&gt;).<\/li>\n<\/ul>\n<p><span class=\"highlighted\">Please note:<\/span> the options in the <strong>Smooth Page Transition section<\/strong> 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 <strong>clear your site cache and browser cache<\/strong> before checking your front-end.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Click on the Smooth Page Transition section, then navigate to General sub section, you can find the option to enable the &#8220;Smooth Page Transition&#8221; 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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":117,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-119","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/loftocean.com\/doc\/loftloader\/wp-json\/wp\/v2\/pages\/119","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/loftocean.com\/doc\/loftloader\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/loftocean.com\/doc\/loftloader\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/loftocean.com\/doc\/loftloader\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/loftocean.com\/doc\/loftloader\/wp-json\/wp\/v2\/comments?post=119"}],"version-history":[{"count":5,"href":"https:\/\/loftocean.com\/doc\/loftloader\/wp-json\/wp\/v2\/pages\/119\/revisions"}],"predecessor-version":[{"id":783,"href":"https:\/\/loftocean.com\/doc\/loftloader\/wp-json\/wp\/v2\/pages\/119\/revisions\/783"}],"up":[{"embeddable":true,"href":"https:\/\/loftocean.com\/doc\/loftloader\/wp-json\/wp\/v2\/pages\/117"}],"wp:attachment":[{"href":"https:\/\/loftocean.com\/doc\/loftloader\/wp-json\/wp\/v2\/media?parent=119"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}