Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

Joshua Farley
Joshua Farley
11,312 Points

Including Stack Blur with JS

I am trying to include Stack Blur into a project. I need the timing function to not only delay 10 seconds, but I need it to have a duration of 3 seconds. As it is, it is instant.

Here is the code. Any advice?

<script type="text/javascript">
    $(document).ready(function(){$(document).ready( function() { 
        //function test() { var tmp =  radius:5 } 
        setTimeout(function(){ 
                    $('#homeBack').blurjs({source:'#homeBack',radius:25});   
      }, 10000);

    });    

});
</script>

Not sure if I'm following the effect you're going for. Could you put all your code up in a JS Bin or something?

Judging from your code, can I assume you're referring to this jQuery plugin - http://blurjs.com/ ?