diff --git a/src/Game.vue b/src/Game.vue index 022a947..b61b749 100644 --- a/src/Game.vue +++ b/src/Game.vue @@ -25,6 +25,7 @@ const currentRow = $computed(() => board[currentRowIndex]) let message = $ref('') let grid = $ref('') let shakeRowIndex = $ref(-1) +let success = $ref(false) // Keep track of revealed letters for the virtual keyboard const letterStates: Record = $ref({}) @@ -117,6 +118,7 @@ function completeRow() { ], -1 ) + success = true }, 1600) } else if (currentRowIndex < board.length - 1) { // go the next row @@ -188,7 +190,11 @@ function genResultGrid() {
{{ tile.letter }}
@@ -335,6 +344,28 @@ function genResultGrid() { } } +.jump .tile .back { + animation: jump 0.5s; +} + +@keyframes jump { + 0% { + transform: translateY(0px); + } + 20% { + transform: translateY(5px); + } + 60% { + transform: translateY(-25px); + } + 90% { + transform: translateY(3px); + } + 100% { + transform: translateY(0px); + } +} + @media (max-height: 680px) { .tile { font-size: 3vh;