arrow fixed aide_ami, added yawning sound

This commit is contained in:
Florian Ehr 2021-01-15 16:24:26 +01:00
parent 5f2a347428
commit 4f7e5d74f0
3 changed files with 8 additions and 0 deletions

View file

@ -143,6 +143,7 @@ body {
} }
#arrow{ #arrow{
height: 2vh;
animation: bounce 1s forwards; animation: bounce 1s forwards;
animation-iteration-count:infinite; animation-iteration-count:infinite;
} }

View file

@ -38,6 +38,13 @@ function handleDisplayEye(){
eyeBlock.children[1].style.cssText = "animation: blinking1 1s forwards 1s,blinking2 1s forwards 2s,blinking3 1s forwards 3s" eyeBlock.children[1].style.cssText = "animation: blinking1 1s forwards 1s,blinking2 1s forwards 2s,blinking3 1s forwards 3s"
eyeBlock.children[0].children[0].style.cssText = "animation:fade 1s forwards 4s" eyeBlock.children[0].children[0].style.cssText = "animation:fade 1s forwards 4s"
eyeBlock.children[2].children[0].style.cssText = "animation:fade 1s forwards 4.5s" eyeBlock.children[2].children[0].style.cssText = "animation:fade 1s forwards 4.5s"
let audioBaillement = document.createElement("audio");
audioBaillement.setAttribute("preload", "auto");
audioBaillement.setAttribute("autoplay", true);
audioBaillement.setAttribute("src", "../Sounds/baillement_final.mp3");
audioBaillement.style.cssText = "z-index: -1; opacity: 0;";
body.appendChild(audioBaillement);
} }
//listeners //listeners

BIN
Sounds/baillement_final.mp3 Normal file

Binary file not shown.