Fading out slightly and automatically after a few seconds

Issue #51 on hold
Former user created an issue

Good day. I had like to use SuperBox as an introduction slide of a first page of a site. So, 1) disappearing automatically after a few seconds and 2) fading out slightly. If it is possible to achieve this effect, please tell us how (I'm new in JavaScript and jQuery) and maybe with an example code. Many thanks

Comments (1)

  1. Pierre Bertet repo owner

    An intro slide? Oh oh, bad idea :-)

    You can do it this way:

    $.superbox.wait(function(){
      $.superbox.open("<p>Hello SuperBox!</p>", { /* settings */ });
      window.setTimeout(function(){
        $.superbox.close();
      }, 5000);
    });
    
  2. Log in to comment