I have a jQuery script to apply blur effect to a div while the page undergoes scrolling.
jQuery:
$(document).scroll(function(){
var pixs = $(document).scrollTop()
pixs = pixs / 10;
$('.tudo').css({"-webkit-filter": "blur("+pixs+"px)","filter": "blur("+pixs+"px)"});});
The class div is the whole body of the page to test the effect, but nothing is working.
Can anyone identify the problem?
Script Import
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"type="text/javascript"></script>
<script type="text/javascript" src="javascript/javascript.js"></script>