Added animation revealing the word colors
Some checks failed
/ publish (push) Has been cancelled

This commit is contained in:
Leon Mika 2025-03-14 22:00:13 +11:00
parent 1367d99446
commit da4a87eb86
3 changed files with 60 additions and 34 deletions

View file

@ -152,6 +152,21 @@ div.playfield div.row span {
margin: 5px;
}
div.playfield div.row.animated-colors span {
transition-property: background-color, color;
transition-duration: 0.15s;
}
div.playfield div.row.animated-colors span:nth-child(1) { transition-delay: 0s; }
div.playfield div.row.animated-colors span:nth-child(2) { transition-delay: 0.2s; }
div.playfield div.row.animated-colors span:nth-child(3) { transition-delay: 0.4s; }
div.playfield div.row.animated-colors span:nth-child(4) { transition-delay: 0.6s; }
div.playfield div.row.animated-colors span:nth-child(5) { transition-delay: 0.8s; }
div.playfield div.row.animated-colors span:nth-child(6) { transition-delay: 1.0s; }
div.playfield div.row.animated-colors span:nth-child(7) { transition-delay: 1.2s; }
div.playfield div.row.animated-colors span:nth-child(8) { transition-delay: 1.4s; }
div.playfield div.row span.hint {
color: var(--color-hint);
}