We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28456
    • 83 Posts
    How do i achieve that a visitor first see a photo/page/background and after 5 seconds redirect to the homepage?
    a kind of splash page with a timer.
    Is that possible within modx?

    Thanks
    Stefan
      • 17301
      • 932 Posts
      Yes, but its more of a front-end development requirement and nothing to do with a CMS as such.

      But you can do it with some simple jQuery.

      $(document).ready(function() {
              $('#yourdiv').delay(5000).fadeOut('slow');
              $('body').delay(5000).css({
                  'overflow': 'visible'
              });
      });


      Place and style up your image (it'll most likely need to be a fixed position element with 100% width/height and a high z-index) in a div called #yourdiv and set your body to overflow hidden.
        ■ email: [email protected] | ■ website: https://alienbuild.uk

        The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.