{"id":2234,"date":"2019-10-13T13:23:02","date_gmt":"2019-10-13T12:23:02","guid":{"rendered":"https:\/\/ibex.tech\/javascript\/?p=2234"},"modified":"2022-02-17T07:14:46","modified_gmt":"2022-02-17T07:14:46","slug":"spinning-circle-icon","status":"publish","type":"post","link":"https:\/\/ibex.tech\/javascript\/examples-javascript\/animation\/spinning-circle-icon","title":{"rendered":"Spinning circle icon"},"content":{"rendered":"\n<p>Its all really done using css!<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">CSS styles<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>#wait_animated_icon {\n  border: 6px solid #f3f3f3;\n  border-radius: 50%;\n  border-top: 6px solid #00ff00;\n  width: 50px;\n  height: 50px;\n  -webkit-animation: animated_icon_spin 2s linear infinite; \/* Safari *\/\n  animation: animated_icon_spin 2s linear infinite;\n  \n  margin-top: 10px;\n  margin-left: auto;\n  margin-right: auto;\n  margin-bottom: 10px;\n  visibility: hidden;  \/*Include this so element will only be shown when DisablePageUntilReloaded() is called*\/\n}\n\n\/* Safari *\/\n@-webkit-keyframes animated_icon_spin {\n  0% { -webkit-transform: rotate(0deg); }\n  100% { -webkit-transform: rotate(360deg); }\n}\n\n@keyframes animated_icon_spin {\n  0% { transform: rotate(0deg); }\n  100% { transform: rotate(360deg); }\n}<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">To show it using javascript<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>wait_animated_icon.style.visibility = \"visible\";<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Its all really done using css! CSS styles To show it using javascript<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[187],"tags":[],"class_list":["post-2234","post","type-post","status-publish","format-standard","hentry","category-animation"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/posts\/2234","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/comments?post=2234"}],"version-history":[{"count":1,"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/posts\/2234\/revisions"}],"predecessor-version":[{"id":2235,"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/posts\/2234\/revisions\/2235"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/media?parent=2234"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/categories?post=2234"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/javascript\/wp-json\/wp\/v2\/tags?post=2234"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}