First of all this is the script located in the head of my document.
<script>
document.addEventListener("DOMContentLoaded", function () {
var e, t = document.querySelectorAll("div.bounceInDown");
for (var n = 0, r = t.length; n < r; n++) {
e = Math.round(Math.random() * 7e3) + "ms";
t[n].style.animationDelay = e;
t[n].style.WebkitAnimationDelay = e
}
}, false)
</script>
Now I have a class called "bounceInDown" which has a keyframe animation. All the div elements that have this secondary class applied should bounce down when the website has loaded. Now, the script there makes the bounce with different delay values. It just doesnt work in internet explorer. No idea why. What is wrong with my code?
It works in all browsers except IE