Animating a Filter via native JavaScript

var value = 0, increment = 1 elem = document.getElementById('filtered'); window.setInterval(function(){ value += increment; elem.style.polyfilter = 'blur(' + value + 'px)'; if(value >= 10 || value <= 0) increment *= -1; },100);