Skip to content

Commit

Permalink
final cmmt
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-hrr-harry committed Mar 30, 2023
1 parent 49988a1 commit 587cbc1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 17 deletions.
10 changes: 5 additions & 5 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ function setFinalRes(){
const winGif = document.createElement("IMG");
winGif.id ="gifImg";
winGif.setAttribute("src","winner_popper.gif");
document.getElementById("main").prepend(winGif);
document.getElementById("tableSec").prepend(winGif);

new Audio("winning_trumpets.mp3").play();
new Audio("winning_applasue.mp3").play();
Expand All @@ -139,9 +139,9 @@ function setFinalRes(){

win=1;

setTimeout(function(){
winGif.remove();
}, 10000);
return;
// setTimeout(function(){
// winGif.remove();
// }, 10000);
// return;
}

21 changes: 9 additions & 12 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -153,13 +153,15 @@ marquee{
}

#gifImg{
position: absolute;
left: 51%;
top: 35%;
transform: translate(-50%, -50%);
height: 500px;
width: auto;
position: absolute;
top: 0;
left: 30%;
z-index: 1000;
display: inline-block;
/* display: block;
margin: 0 100% 0 auto;*/
z-index: 1000;
}

/* Footer */
Expand Down Expand Up @@ -199,18 +201,13 @@ marquee{
/* KEYFRAMES */

@keyframes zoomIn{
from{
0%{
transform: scale(0);
opacity: 0;
}

to{
100%{
transform: scale(1);
opacity: 1;
}

/* 100%{
transform:scale(0);
opacity: 0;
} */
}

0 comments on commit 587cbc1

Please sign in to comment.