Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Updated spinner style (#6912)

christof-wittreich7651a3ffafd1
diff --git a/web/js/components/map/loading-spinner.js b/web/js/components/map/loading-spinner.js
index 85e5cb52e..903911dd2 100644
--- a/web/js/components/map/loading-spinner.js
+++ b/web/js/components/map/loading-spinner.js
@@ -37,7 +37,7 @@ function LoadingIndicator() {
};
return shouldSpinnerShow && (
- <div style={spinnerStyle}>
+ <div className="loading-spinner" style={spinnerStyle}>
<Spinner color="light" size="sm" style={innerSpinnerStyle} />
</div>
);
diff --git a/web/scss/features/loading-spinner.scss b/web/scss/features/loading-spinner.scss
new file mode 100644
index 000000000..36ae85242
--- /dev/null
+++ b/web/scss/features/loading-spinner.scss
@@ -0,0 +1,17 @@
+.loading-spinner {
+ animation: fade-in 1.5s ease-in-out forwards;
+}
+
+@keyframes fade-in {
+ 0% {
+ opacity: 0;
+ }
+
+ 67% {
+ opacity: 0;
+ }
+
+ 100% {
+ opacity: 1;
+ }
+}
\ No newline at end of file
diff --git a/web/scss/index.scss b/web/scss/index.scss
index ba188f9a1..b1783cf91 100644
--- a/web/scss/index.scss
+++ b/web/scss/index.scss
@@ -34,6 +34,7 @@
@use 'features/layer-categories';
@use 'features/layer-coverage-panel';
@use 'features/layers';
+@use 'features/loading-spinner';
@use 'features/location-search';
@use 'features/map';
@use 'features/measure';