jQuery Reveal Tips

I’ve mentioned the jQuery reveal modal plugin before, and I think there are two really good tips about how to use it that aren’t clear on their site which might come in handy to people who use it.

To trigger jQuery reveal on page load for the relevant reveal element (e.g a div):

$(document).ready(function() {

Similarly to close on clicking of the “close” (X) button:

$('a.close-reveal-modal').on("click", function(e) {