Grow your CSS skills. Land your dream job.

Specify a Random Time for fadeOut jQuery

  • # December 28, 2009 at 2:42 pm

    Hi Everyone !

    I need a quick tip for my website please !

    I would lide to fadeOut a div, but i want a random time
    I want a time between 0,1sec and 2 sec

    here is the code :

    Code:
    $(function(){

    var time = … ;

    $(‘#box’).fadeOut(time,callback(){})

    )} // end jQuery

    PS : I’m sorry for my bad english

    Thanks !!! :D

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".