mirror of
https://github.com/FranP-code/Tic-Tac-Toe-Game.git
synced 2025-10-12 23:52:39 +00:00
Added some style logic
This commit is contained in:
12
script/game-functions/hidePlayerSelection.js
Normal file
12
script/game-functions/hidePlayerSelection.js
Normal file
@@ -0,0 +1,12 @@
|
||||
export default function hidePlayerSelection() {
|
||||
|
||||
const playerSelection = document.getElementsByClassName('player-selection')[0]
|
||||
|
||||
playerSelection.classList.add('animate__fadeOutDown')
|
||||
|
||||
setTimeout(() => {
|
||||
|
||||
playerSelection.classList.add('hidden')
|
||||
|
||||
}, 1000)
|
||||
}
|
||||
Reference in New Issue
Block a user