I am creating a website that is compatible with desktop, iPad, and iPhone. On one page, I have a header and footer that are initially visible for 5 seconds after the page loads, then automatically disappear. Users can toggle the visibility of the header and footer by clicking or touching anywhere on the screen. When the header and footer are visible, the rest of the page will be dimmed similar to lightboxes.
If you want to see an example of this effect, you can visit http://jsfiddle.net/jitendravyas/yZbTK/2/
The desired outcome is to replicate the behavior seen in the default "Photos" app on iPad.