{"id":680,"date":"2020-07-23T00:18:29","date_gmt":"2020-07-23T00:18:29","guid":{"rendered":"https:\/\/loftocean.com\/doc\/loftloader\/?page_id=680"},"modified":"2020-07-23T00:18:29","modified_gmt":"2020-07-23T00:18:29","slug":"custom-html-loader","status":"publish","type":"page","link":"https:\/\/loftocean.com\/doc\/loftloader\/loader\/custom-html-loader\/","title":{"rendered":"Custom HTML Loader"},"content":{"rendered":"<p>This is a new feature added in version 2.2.2.<\/p>\n<p>When selecting Custom HTML Loader, you will be able to add the HTML code of your custom loader animation. For example, you can add a pre-defined SVG animation from <a href=\"https:\/\/lottiefiles.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">LottieFiles<\/a>.<\/p>\n<p>You can find a SVG animation on LottieFiles, click it to popup a window of its details. Find the &#8220;<strong>Use this animation in<\/strong>&#8221; option, and click &#8220;<strong>&lt; html &gt;<\/strong>&#8220;.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/loftocean.com\/doc\/loftloader\/wp-content\/uploads\/sites\/3\/2020\/07\/html-loader-1.jpg\" alt=\"\" width=\"2522\" height=\"1790\" class=\"alignnone size-full wp-image-681\" srcset=\"https:\/\/loftocean.com\/doc\/loftloader\/wp-content\/uploads\/sites\/3\/2020\/07\/html-loader-1.jpg 2522w, https:\/\/loftocean.com\/doc\/loftloader\/wp-content\/uploads\/sites\/3\/2020\/07\/html-loader-1-300x213.jpg 300w, https:\/\/loftocean.com\/doc\/loftloader\/wp-content\/uploads\/sites\/3\/2020\/07\/html-loader-1-768x545.jpg 768w, https:\/\/loftocean.com\/doc\/loftloader\/wp-content\/uploads\/sites\/3\/2020\/07\/html-loader-1-1024x727.jpg 1024w\" sizes=\"auto, (max-width: 2522px) 100vw, 2522px\" \/><\/p>\n<p>You can adjust some settings for the animation, and click &#8220;<strong>Copy Code<\/strong>&#8220;.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/loftocean.com\/doc\/loftloader\/wp-content\/uploads\/sites\/3\/2020\/07\/html-loader-2.jpg\" alt=\"\" width=\"3072\" height=\"1707\" class=\"alignnone size-full wp-image-682\" srcset=\"https:\/\/loftocean.com\/doc\/loftloader\/wp-content\/uploads\/sites\/3\/2020\/07\/html-loader-2.jpg 3072w, https:\/\/loftocean.com\/doc\/loftloader\/wp-content\/uploads\/sites\/3\/2020\/07\/html-loader-2-300x167.jpg 300w, https:\/\/loftocean.com\/doc\/loftloader\/wp-content\/uploads\/sites\/3\/2020\/07\/html-loader-2-768x427.jpg 768w, https:\/\/loftocean.com\/doc\/loftloader\/wp-content\/uploads\/sites\/3\/2020\/07\/html-loader-2-1024x569.jpg 1024w\" sizes=\"auto, (max-width: 3072px) 100vw, 3072px\" \/><\/p>\n<p>Then please open the setting panel of LoftLoader Pro, navigate to &#8220;<strong>Loader<\/strong>&#8221; &gt; select &#8220;<strong>Custom HTML Loader<\/strong>&#8220;, and paste the code into the box.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/loftocean.com\/doc\/loftloader\/wp-content\/uploads\/sites\/3\/2020\/07\/html-loader-3.jpg\" alt=\"\" width=\"300\" height=\"860\" class=\"alignnone size-full wp-image-683\" srcset=\"https:\/\/loftocean.com\/doc\/loftloader\/wp-content\/uploads\/sites\/3\/2020\/07\/html-loader-3.jpg 598w, https:\/\/loftocean.com\/doc\/loftloader\/wp-content\/uploads\/sites\/3\/2020\/07\/html-loader-3-105x300.jpg 105w, https:\/\/loftocean.com\/doc\/loftloader\/wp-content\/uploads\/sites\/3\/2020\/07\/html-loader-3-357x1024.jpg 357w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p><strong>Please note:<\/strong> It is NOT recommended enabling the &#8220;Smooth Page Transition&#8221; feature when using a custom HTML loader. Because the loader may need to re-render every time the page is opened or refreshed, the loader animation may disappear for a while before reappearing during the page transition process. And it is controlled by the third-party animation library you use, which we cannot control.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is a new feature added in version 2.2.2. When selecting Custom HTML Loader, you will be able to add the HTML code of your custom loader animation. For example, you can add a pre-defined SVG animation from LottieFiles. You can find a SVG animation on LottieFiles, click it to popup a window of its [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":73,"menu_order":5,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-680","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/loftocean.com\/doc\/loftloader\/wp-json\/wp\/v2\/pages\/680","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=680"}],"version-history":[{"count":1,"href":"https:\/\/loftocean.com\/doc\/loftloader\/wp-json\/wp\/v2\/pages\/680\/revisions"}],"predecessor-version":[{"id":684,"href":"https:\/\/loftocean.com\/doc\/loftloader\/wp-json\/wp\/v2\/pages\/680\/revisions\/684"}],"up":[{"embeddable":true,"href":"https:\/\/loftocean.com\/doc\/loftloader\/wp-json\/wp\/v2\/pages\/73"}],"wp:attachment":[{"href":"https:\/\/loftocean.com\/doc\/loftloader\/wp-json\/wp\/v2\/media?parent=680"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}