Page loading transition

Create a sequenced animation that animates multiple elements once a page loads.

Within the scope of our series concerning After Effects and Lottie in Webflow, we devised a page load transition in After Effects employing the Bodymovin plug-in. This guide will walk you through the process of integrating it into our project so it displays on the screen before vanishing once the page completes loading.

Topics covered in this instructional:

  1. Incorporate the Lottie transition into our project
  2. Establish the trigger
  3. Configure the transition to fade away

Integrate the Lottie transition into our project

You must export your Lottie transition from After Effects and upload it to your Webflow project. We exported the transition using Bodymovin. Discover how to execute this in steps 3 and 4 of our comprehensive tutorial. 

To locate and insert the transition, tap the image icon in the Assets panel located in the left toolbar and drop the transition at the top of the page. 

The .json asset is highlighted on the assets panel. There are five other assets in the panel.

To loop the transition, enable Loop in the Lottie Animation Settings popup.

The lottie animation settings panel displays a replace lottie sequence button, a preview window, a preview animation button, a check box for use built-in duration, loop and play in reverse. It also displays an input field for the use built-in duration. Below are two options for Render, SVG and canvas. At the bottom there is a show all settings button.

Close the settings window and within the Style panel on the right, pick Fixed from the dropdown list beside Position. This will dictate the transition’s position on the screen. 

For Size, assign 100% as both the width and height. 

The size section in the style panel displays a width of 100% and a height of 100%. These are highlighted on the panel.

Within Position, allocate a high number to the z-index (the stacking order) such as 9999. This ensures the transition always sits on top. 

The z-Index input field with 9999 entered is highlighted in the position section of the style panel.

If your transition features a transparent backdrop, you may additionally incorporate a background color. 

Step one on the left opt for the color button to unveil the color picker, step 2 on the right, choose your preferred background color.

Great! Let’s proceed with configuring the trigger to conceal the transition upon page completion of loading.

Establish the trigger

In the Interactions panel, hit the plus symbol adjacent to Page trigger and select Page load from the dropdown list. 

Step one on the left, tap on the plus symbol on the Page trigger section. Step two on the right, choose the Page load option from the dropdown list.

Beneath When page finishes loading, select Initiate an Animation from the Action menu. 

The When page finishes loading has a dropdown menu open for the action selection. There are 2 options, custom animation and start an animation which is highlighted.

To maintain organization, click the plus symbol beside Timed Animations and label your animation (e.g., Page loader). 

Remain within the Interactions panel for the subsequent step where we ascertain the transition conceals upon page load completion.

Configure the transition to vanish

Select the plus symbol next to Timed Actions in the Interactions panel and opt for Hide/Show from the dropdown list.

Step one on the left, choose the plus symbol on the Timed animations section. Step 2 in the middle, choose the plus symbol on the actions bar. Step 3 on the right, opt for the Hide/Show option from the Miscellaneous section in the actions dropdown list.

Beneath Hide/Show, configure the Display setting to none.

The Hide/show displays the 6 display options. The none option is highlighted.

In the Timed Actions segment, tap 0.00 second in the timeline and select Opacity from the dropdown list. 

Step one on the left, select the 0.00 time code. Step two on the right, pick the Opacity action from the dropdown list.

Adjust the Opacity to 0 and Duration to 1.5 seconds to gently fade out the transition. 

The timing settings panel presents a radio button to set as initial state, a start dropdown menu with a delay input field, an easing duration, and two settings with a type of ease dropdown list. The opacity section comprises a slider to adjust the percentage.

In the Timed Actions segment, press the Lottie Animation at 1.5 seconds on the timeline and within Hide/Show, set the Display to none.

Step one on the left select the action at the 1.50 timecode, step two on the right, pick the none display option on the Hide/show settings panel.e

Review your adjustments in preview mode — fine-tune your settings and tailor the transition to align perfectly with the page design you’re crafting.

Ewan Mak
Latest posts by Ewan Mak (see all)