Browse Source

arrow fixed aide_ami, added yawning sound

Florian Ehr 3 years ago
parent
commit
4f7e5d74f0
3 changed files with 8 additions and 0 deletions
  1. 1
    0
      CSS/aide_ami.css
  2. 7
    0
      JAVASCRIPT/etrange_decouverte.js
  3. BIN
      Sounds/baillement_final.mp3

+ 1
- 0
CSS/aide_ami.css View File

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

+ 7
- 0
JAVASCRIPT/etrange_decouverte.js View File

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

BIN
Sounds/baillement_final.mp3 View File


Loading…
Cancel
Save