Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript

Joshua Farley
Joshua Farley
10,403 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/ ?