Landing Page

Is it possible using corvid code to fade out this landing page then open another page instead of using the welcome link button for the task?

Mike

1 Like

You would be able to do this in 6 lines of code.

Step 1. Apply the transition effect you want (under manage pages > page transitions)
Step 2. Add the following code to your landing page

import wixLocation from 'wix-location';

$w.onReady(function () {
setTimeout(() => {
wixLocation.to('/main-page')
}, 5000);
/* this is written in milliseconds.  for a ten second delay use 10000, etc*/
});

This code redirects the user to another page after a certain time.
You can see it live here.


You also have another option, which only uses one page, but takes advantage of show/hide to display your landing page, which would be made in a strip. Show/hide also has the advantage of more transition effects.
This isn’t exactly what you asked for, but it is a suitable workaround.

3 Likes

Very nice!!!