Spaces:
Sleeping
Sleeping
GMARTINEZMILLA
commited on
Create animations.css
Browse files- animations.css +30 -0
animations.css
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* CSS for the Lottie animation overlay */
|
2 |
+
.overlay {
|
3 |
+
position: fixed;
|
4 |
+
top: 0;
|
5 |
+
left: 0;
|
6 |
+
width: 100%;
|
7 |
+
height: 100%;
|
8 |
+
display: flex;
|
9 |
+
justify-content: center;
|
10 |
+
align-items: center;
|
11 |
+
background-color: rgba(0, 0, 0, 0.5); /* Add transparency */
|
12 |
+
z-index: 1000; /* Ensure it appears over the content */
|
13 |
+
transition: opacity 0.5s ease; /* Smooth fade in and out */
|
14 |
+
}
|
15 |
+
|
16 |
+
/* Hide the overlay when not needed */
|
17 |
+
.hidden {
|
18 |
+
display: none;
|
19 |
+
}
|
20 |
+
|
21 |
+
/* Optional: Adding some animation effect to the overlay */
|
22 |
+
.overlay.active {
|
23 |
+
opacity: 1;
|
24 |
+
pointer-events: all;
|
25 |
+
}
|
26 |
+
|
27 |
+
.overlay.inactive {
|
28 |
+
opacity: 0;
|
29 |
+
pointer-events: none;
|
30 |
+
}
|