steveai steveai - 11 months ago 65
CSS Question

I need a div to activate after 10 seconds

On my website there is a menu div that basically is a little + sign in a box. Apparently this is hard to see for many so I'm wondering if I can somehow activate

I need to go from default:



after 10 seconds.


Answer Source

Use the setTimeout() function. See below:

    //Change menu to open here.

The number at the end of the function is in milliseconds.