Menu icon Foundation
reveal modal window open after 3 seconds

Hello,
Anyone knows if it is possible to have a reveal modal window open after 3 seconds when a page is loaded, without pressing any button?

Thanks.

foundation 6revealjquery

Hello,
Anyone knows if it is possible to have a reveal modal window open after 3 seconds when a page is loaded, without pressing any button?

Thanks.

This post has been closed. No new replies can be added.

Brian Tan over 3 years ago

try something like this: <div id="reveal" class="reveal" data-reveal>

 <script>
$(document).foundation();
var openReveal = function() {
  $("#reveal").foundation("open");
}
setTimeout(openReveal,3000);
</script>

Robocop over 3 years ago

thanks for helping me. your script is exactly what i need!

cheers