WIP | Syllable AI

This commit is contained in:
2026-08-11 18:56:44 +10:00
parent a3e5ea2772
commit e1cb8bb023
4 changed files with 160 additions and 17 deletions
+20 -6
View File
@@ -142,6 +142,11 @@ body.rl-dropdown-open [data-test="toggle-lyrics"] {
gap: 10px;
}
/* Breathing room between stacked rows */
.sticky-lyrics-dropdown-row + .sticky-lyrics-dropdown-row {
margin-top: 8px;
}
.sticky-lyrics-label {
font-size: 11px;
font-weight: 600;
@@ -599,21 +604,21 @@ body.rl-owns-lyric-scroll [class*="_syncButtonContainer_"] {
@keyframes rl-wipe {
from {
background-size:
0.75em 100%,
var(--rl-wipe-feather, 0.75em) 100%,
0% 100%,
100% 100%;
background-position:
-0.375em 0%,
calc(var(--rl-wipe-feather, 0.75em) / -2) 0%,
left,
left;
}
to {
background-size:
0.75em 100%,
var(--rl-wipe-feather, 0.75em) 100%,
100% 100%,
100% 100%;
background-position:
calc(100% + 0.375em) 0%,
calc(100% + var(--rl-wipe-feather, 0.75em) / 2) 0%,
left,
left;
}
@@ -640,11 +645,11 @@ body.rl-owns-lyric-scroll [class*="_syncButtonContainer_"] {
linear-gradient(90deg, var(--cl-glow1, #fff) 100%, transparent 100%),
linear-gradient(90deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4));
background-size:
0.75em 100%,
var(--rl-wipe-feather, 0.75em) 100%,
0% 100%,
100% 100%;
background-position:
-0.375em 0%,
calc(var(--rl-wipe-feather, 0.75em) / -2) 0%,
left,
left;
/* biome-ignore lint: No glow for syllable mode */
@@ -653,6 +658,15 @@ body.rl-owns-lyric-scroll [class*="_syncButtonContainer_"] {
filter: none !important;
}
/* AI-generated timing: soften word-mode color flips so a boundary that's off
by a bit has no crisp edge to expose it. Per-span --rl-wipe-feather is set
inline from the AI model's confidence. SUPER WIP */
.rl-wbw-container.rl-ai .rl-wbw-word {
transition:
text-shadow 0.25s ease-out,
color 0.3s ease-out;
}
/* Syllable finished: word stays Colorama color */
.rl-wbw-word.rl-syl-finished {
/* biome-ignore lint: Kill base transitions so class swaps are instant */