TagSpaces is an offline, open source, document manager with tagging support
reimplementing loading animation
uggrock29ec7b53bf37
diff --git a/data/assets/tagspaces.css b/data/assets/tagspaces.cssindex a8151eab8..f75e540ae 100644--- a/data/assets/tagspaces.css+++ b/data/assets/tagspaces.css@@ -106,12 +106,6 @@ user-select: none;margin: 6px;}-#loadingAnimation {- display: inline-block;- width: 30px;- height: 30px;-}-#statusBar {margin-top: 12px;font-size: 14px;@@ -908,4 +902,57 @@ input a.resetFilter {.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch {right: 0px;}-/* Toggle Switch End */\ No newline at end of file+/* Toggle Switch End */++#loadingAnimation {+ width: 100%;+}++/* Begin loading animation based on https://github.com/tobiasahlin+Licensed under MIT https://github.com/tobiasahlin/SpinKit/blob/master/LICENSE+*/+#loadingAnimation .spinner {+ margin: 15px auto 0;+ width: 70px;+ text-align: center;+}++#loadingAnimation .spinner > div {+ width: 18px;+ height: 18px;+ background-color: #333;++ border-radius: 100%;+ display: inline-block;+ -webkit-animation: bouncedelay 1.4s infinite ease-in-out;+ animation: bouncedelay 1.4s infinite ease-in-out;+ /* Prevent first frame from flickering when animation starts */+ -webkit-animation-fill-mode: both;+ animation-fill-mode: both;+}++#loadingAnimation .spinner .bounce1 {+ -webkit-animation-delay: -0.32s;+ animation-delay: -0.32s;+}++#loadingAnimation .spinner .bounce2 {+ -webkit-animation-delay: -0.16s;+ animation-delay: -0.16s;+}++@-webkit-keyframes bouncedelay {+ 0%, 80%, 100% { -webkit-transform: scale(0.0) }+ 40% { -webkit-transform: scale(1.0) }+}++@keyframes bouncedelay {+ 0%, 80%, 100% {+ transform: scale(0.0);+ -webkit-transform: scale(0.0);+ } 40% {+ transform: scale(1.0);+ -webkit-transform: scale(1.0);+ }+}+/* End loading animation */\ No newline at end of filediff --git a/data/ext/perspectiveList/perspectiveUI.js b/data/ext/perspectiveList/perspectiveUI.jsindex a0692e3d1..0d2ac0807 100644--- a/data/ext/perspectiveList/perspectiveUI.js+++ b/data/ext/perspectiveList/perspectiveUI.js@@ -423,6 +423,7 @@ define(function(require, exports, module) {}this.refreshThumbnails();+ TSCORE.hideLoadingAnimation();};var buttonCompTmpl = Handlebars.compile('<button filepath="{{filepath}}" class="btn btn-link fileSelection"><i class="fa {{selected}} fa-fw fa-lg"></i></button>' +diff --git a/data/index.html b/data/index.htmlindex 5b8aaaa0f..ab084daeb 100644--- a/data/index.html+++ b/data/index.html@@ -201,10 +201,16 @@ can be found in the LICENSE file.<div class="bottomEdgeCol2"></div></div><div class="row3">- <div class="btn-toolbar">+ <div class="btn-toolbar" id="col2Footer"><div class="btn-group" id="alternativeNavigator" style="margin: 5px 5px 5px 10px;"></div><div id="statusBar" class="noWrap"></div>- <div class="btn btn-link" id="loadingAnimation"></div>+ </div>+ <div id="loadingAnimation">+ <div class="spinner">+ <div class="bounce1"></div>+ <div class="bounce2"></div>+ <div class="bounce3"></div>+ </div></div></div></div>