diff --git a/www/js/script.js b/www/js/script.js index 671c3e9..89a5ba0 100644 --- a/www/js/script.js +++ b/www/js/script.js @@ -84,11 +84,37 @@ document.addEventListener("load", function(e) { }); */ +function timerBlur(){ + var count = 3; + var timer2 = setInterval(function(){ + + if (count == 3) { + document.getElementById('logoAccueil').style.filter = "blur(3px)"; + + } + else if (count == 2) + { + document.getElementById('logoAccueil').style.filter = "blur(2px)"; + } + else if (count == 1) + { + document.getElementById('logoAccueil').style.filter = "blur(1px)"; + } + else if (count == 0) + { + document.getElementById('logoAccueil').style.filter = ""; + clearInterval(timer2); + } + count--; + }, 350); + +} function timerGlitch(){ var timer = setInterval(function(){ curSrc = document.getElementById('logoAccueil').getAttribute('src'); if (curSrc == 'images/LogoALT-F4_Nav.svg') { + timerBlur(); document.getElementById('logoAccueil').setAttribute('src', 'images/LogoAlt-F4_NavGlitch.svg') } else