Example 1

This show the layer appears from top or bottom.
More script and css style : www.htmldrive.net