Stop body from scrolling with Foundation 5 Reveal-Modal
body.modal-open {
overflow: hidden;
position: fixed;
}
.reveal-modal {
overflow-y: auto;
height: 100%;
position: fixed;
}
$(".reveal-modal").on("open", function () {
$("body").addClass("modal-open");
});
$('.close-reveal-modal').bind("click touchstart", function () {
$('body').removeClass('modal-open');
});