Skip to content

Commit

Permalink
feat: added animations
Browse files Browse the repository at this point in the history
  • Loading branch information
brysah committed Oct 31, 2023
1 parent 8e997f6 commit 2da6f53
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion game-result.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

<section class="s-result">
<div class="container">
<div class="title">
<div class="title animate__animated animate__tada">
<h1 class="green" id="headline">where the music</h1>
<h1 id="message">magic happens!</h1>
</div>
Expand Down
5 changes: 3 additions & 2 deletions game-setting.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">


<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css" />
<title>GuessTheVerse</title>
<link rel="stylesheet" href="./css/main.css">

Expand All @@ -28,7 +29,7 @@
</header>
<section class="s-setting">
<div class="container">
<div class="title"><img src="./img/choose.png" alt="Choose your favorite artist">
<div class="title animate__animated animate__heartBeat"><img src="./img/choose.png" alt="Choose your favorite artist">
</div>
<form>
<label for="artist" class="search-label">
Expand Down
10 changes: 5 additions & 5 deletions game.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,16 @@
</div>
<div class="thin-line"></div>
<div class="game-content">
<div class="artist-info">
<div class="artist-info animate__animated animate__flipInY">
<img src="" class="artist-img">
</div>
<div class="questions">
<h3 class="lyrics">Loading lyric...</h3>
<div class="answers">
<button class="option a">A) </button>
<button class="option b">B) </button>
<button class="option c">C) </button>
<button class="option d">D) </button>
<button class="option a animate__animated animate__bounceInLeft">A) </button>
<button class="option b animate__animated animate__bounceInRight">B) </button>
<button class="option c animate__animated animate__bounceInLeft">C) </button>
<button class="option d animate__animated animate__bounceInRight">D) </button>
</div>
</div>
<div class="next-question">
Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css" />
<title>GuessTheVerse</title>
<link rel="stylesheet" href="./css/main.css">

Expand All @@ -33,7 +33,7 @@

<section class="s-welcome">
<div class="container">
<div class="title">
<div class="title animate__animated animate__tada">
<h1 class="yellow">where the music</h1>
<h1>magic happens!</h1>
</div>
Expand Down
2 changes: 1 addition & 1 deletion js/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ nextQuestion.addEventListener('click', () => {
localStorage.setItem('question', question);
setTimeout(refresh, 3000);
} else {
setTimeout(refresh, 3000);
localStorage.setItem('question', 0);
localStorage.setItem('prevSongs', '');
setTimeout(refresh, 3000);
window.location.href = 'game-result.html';
}
}
Expand Down

0 comments on commit 2da6f53

Please sign in to comment.