Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 79716e8493
Fetching contributors…

Cannot retrieve contributors at this time

file 24 lines (14 sloc) 1.094 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
The jQuery Curtain plugin allows you to place a darkened curtain over any DOM element, optionally with a graphic centered on the curtain. This can be used to disabled a portion of the page for any reason, such as to indicate an ajax call in progress.

Source on Github:


It works by appending a div to the end of the body tag. The div's absolute position and size are calculated on the fly to match the parent element. This means that the curtain can be applied to any element type, regardless of its position.


To apply the curtain: $(".elements_to_curtain").curtain(options);

To remove the curtain: $(".elements_to_curtain").curtain("remove");

To get the curtain: $(".elements_to_curtain").curtain("get");

To change the default options: $.curtainSetup(options);

Options (all are optional):

  loader_image - The location of the image you would like to overlay on the curtain. If an empty string is used, no image will appear.
    default: '/images/ajax-loader.gif'
Something went wrong with that request. Please try again.