{"id":164,"date":"2014-09-29T01:33:32","date_gmt":"2014-09-29T01:33:32","guid":{"rendered":"http:\/\/html5box.com\/blog\/?p=164"},"modified":"2014-09-29T01:35:41","modified_gmt":"2014-09-29T01:35:41","slug":"how-to-add-a-loading-animation-to-html5-gallery","status":"publish","type":"post","link":"https:\/\/html5box.com\/blog\/jquery-photo-gallery\/how-to-add-a-loading-animation-to-html5-gallery\/","title":{"rendered":"How to add a loading animation to HTML5 Gallery"},"content":{"rendered":"<p>This tutorial is only available for HTML5 Gallery Version 5.7 and above.<\/p>\n<p>To add a loading animation to HTML5 gallery, you can add an extra div with class name html5gallery-loading before the html5gallery div, for example:<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;!-- the html5gallery loading div --&gt;\r\n\r\n&lt;div class=&quot;html5gallery-loading&quot; style=&quot;display:block;margin:0 auto;width:300px;height:300px;background:url('html5gallery\/loading.gif') no-repeat center center;&quot;&gt;&lt;\/div&gt; \r\n\r\n&lt;!-- your existing html5gallery div --&gt;\r\n\r\n&lt;div class=&quot;html5gallery&quot; data-skin=&quot;darkness&quot; data-width=&quot;480&quot; data-height=&quot;272&quot; style=&quot;display:none;&quot;&gt;\r\n<\/pre>\n<p>After the gallery is loaded, it will automatically hide the loading div.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This tutorial is only available for HTML5 Gallery Version 5.7 and above. To add a loading animation to HTML5 gallery, you can add an extra div with class name html5gallery-loading before the html5gallery div, for example: &lt;!-- the html5gallery loading div --&gt; &lt;div class=&quot;html5gallery-loading&quot; style=&quot;display:block;margin:0 auto;width:300px;height:300px;background:url('html5gallery\/loading.gif') no-repeat center center;&quot;&gt;&lt;\/div&gt; &lt;!-- your existing html5gallery div --&gt; &hellip; <a href=\"https:\/\/html5box.com\/blog\/jquery-photo-gallery\/how-to-add-a-loading-animation-to-html5-gallery\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">How to add a loading animation to HTML5 Gallery<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,6],"tags":[],"class_list":["post-164","post","type-post","status-publish","format-standard","hentry","category-jquery-photo-gallery","category-jquery-video-gallery"],"_links":{"self":[{"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/posts\/164","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/comments?post=164"}],"version-history":[{"count":1,"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/posts\/164\/revisions"}],"predecessor-version":[{"id":165,"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/posts\/164\/revisions\/165"}],"wp:attachment":[{"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/media?parent=164"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/categories?post=164"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/tags?post=164"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}