Spaces:
Running
Running
Update index.html
Browse files- index.html +33 -12
index.html
CHANGED
|
@@ -27,25 +27,46 @@
|
|
| 27 |
-------------------------------------------------------------
|
| 28 |
*/
|
| 29 |
|
| 30 |
-
/*
|
|
|
|
|
|
|
| 31 |
@keyframes pulse {
|
| 32 |
-
0% { opacity: 0.
|
| 33 |
-
50% { opacity: 1;
|
| 34 |
-
100% { opacity: 0.
|
| 35 |
}
|
| 36 |
|
| 37 |
-
/*
|
|
|
|
|
|
|
|
|
|
| 38 |
@keyframes float {
|
| 39 |
-
0% { transform: translateY(0px);
|
| 40 |
-
50% { transform: translateY(-
|
| 41 |
-
100% { transform: translateY(0px);
|
| 42 |
}
|
| 43 |
|
| 44 |
-
/*
|
|
|
|
|
|
|
|
|
|
| 45 |
@keyframes glow {
|
| 46 |
-
0% { box-shadow: 0 0
|
| 47 |
-
50% { box-shadow: 0 0
|
| 48 |
-
100% { box-shadow: 0 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
}
|
| 50 |
|
| 51 |
/* Apply float and glow to the βconscious orbβ icon */
|
|
|
|
| 27 |
-------------------------------------------------------------
|
| 28 |
*/
|
| 29 |
|
| 30 |
+
/* ββββββββββββββββββββββββββββββββββββββββ
|
| 31 |
+
1) Pulse: fade between 0.2 β 1 opacity (very dramatic)
|
| 32 |
+
ββββββββββββββββββββββββββββββββββββββββ */
|
| 33 |
@keyframes pulse {
|
| 34 |
+
0% { opacity: 0.2; }
|
| 35 |
+
50% { opacity: 1; }
|
| 36 |
+
100% { opacity: 0.2; }
|
| 37 |
}
|
| 38 |
|
| 39 |
+
/* ββββββββββββββββββββββββββββββββββββββββ
|
| 40 |
+
2) Float: move element up and down by 80px
|
| 41 |
+
(original was Β±10px; weβre now doing Β±80px)
|
| 42 |
+
ββββββββββββββββββββββββββββββββββββββββ */
|
| 43 |
@keyframes float {
|
| 44 |
+
0% { transform: translateY(0px); }
|
| 45 |
+
50% { transform: translateY(-80px); }
|
| 46 |
+
100% { transform: translateY(0px); }
|
| 47 |
}
|
| 48 |
|
| 49 |
+
/* ββββββββββββββββββββββββββββββββββββββββ
|
| 50 |
+
3) Glow: boxβshadow going from 80px β 160px blur
|
| 51 |
+
(original was 10px β 20px; weβre now doing 80px β 160px)
|
| 52 |
+
ββββββββββββββββββββββββββββββββββββββββ */
|
| 53 |
@keyframes glow {
|
| 54 |
+
0% { box-shadow: 0 0 80px rgba(99, 102, 241, 0.5); }
|
| 55 |
+
50% { box-shadow: 0 0 160px rgba(99, 102, 241, 0.8); }
|
| 56 |
+
100% { box-shadow: 0 0 80px rgba(99, 102, 241, 0.5); }
|
| 57 |
+
}
|
| 58 |
+
|
| 59 |
+
/* ββββββββββββββββββββββββββββββββββββββββ
|
| 60 |
+
Make sure your β.conscious-orbβ (or whatever class
|
| 61 |
+
youβre animating) still points to these keyframes.
|
| 62 |
+
For example:
|
| 63 |
+
ββββββββββββββββββββββββββββββββββββββββ */
|
| 64 |
+
.conscious-orb {
|
| 65 |
+
/* Adjust timing however you like; these are just examples */
|
| 66 |
+
animation:
|
| 67 |
+
float 6s ease-in-out infinite,
|
| 68 |
+
glow 3s ease-in-out infinite,
|
| 69 |
+
pulse 2s ease-in-out infinite; /* you can add pulse as well */
|
| 70 |
}
|
| 71 |
|
| 72 |
/* Apply float and glow to the βconscious orbβ icon */
|