Progress
๐ฅ Free Preview
Rive Basics - Animate
Create the Main Screen
Dynamic Weather Buddy
โก๏ธ Custom Events
๐ Data Binding Basics
๐ Data Binding Basics - Exrc
๐ Data Binding Advanced
๐ Data Binding Expert | Main Project
๐ Data Binding Master
โ๏ธ Weather Animation - Clear Skies
๐ก๏ธ Weather Animation - Heatwave
โ๏ธ Weather Animation - Rainy
โ๏ธ Weather Animation - Snowy (Exrc)
The Goal
Let's add trees to the Weather Snow Scene component. We'll use a clipping mask to reveal them - the same technique from earlier in the course, but now applied to our snowy landscape.
Here's the final result for reference:

Step 1 - Import the Trees
Grab the tree illustrations from the attached lesson file
Position them on the left side, above the snow
Use the video above as a reference for placement - or feel free to position them wherever works for your scene
Select the tree group and rename it to Trees
Put the Trees group inside the Scene-M at the bottom

Step 2 - Set Up the Mask
We need a way to hide and reveal the trees. Here's how:
Create a rectangle on top of the trees, matching their size
Select the rectangle and group it (Cmd/Ctrl+G). Rename the group to Trees-Mask
Set it to 50% opacity so you can see the trees underneath while you work
Set Trees-Mask as the Clipping Mask for Trees
Group the Trees and the Trees-Mask into a new group and rename it Trees-M
Place Trees-M inside the snowman

Step 3 - Test the Mask
Before we animate, let's make sure the mask works:
Move the mask below the trees
The trees disappear - the mask no longer covers them
This is exactly what we'll use to animate the reveal

Step 4 - Animate the Reveal
Switch to Animate Mode and go to the existing Show timeline.
We want the trees to appear after the snowman finishes entering:
Go to the last frame and add a keyframe on the mask's Position Y - with the mask covering the trees (visible)
Move 20 frames backward and add another keyframe where the mask moves down to hide the trees
Add Ease In to the motion
Set the mask shape visibility to 0% so it's invisible
Since this is on the existing Show timeline, the reversed Hide animation already takes care of hiding the trees. Nothing else to set up.

Step 5 - Set the Start State
In the Start state, make sure the mask is positioned below the trees so they're hidden by default. This way the trees won't be visible when the snowy weather isn't active.

Step 6 - Test It
Go to the main screen and switch to snowy weather. You should see the snowman assemble, then the trees reveal at the end.

Step 7 - Hide the Scene in Design Mode
Now that we're done setting up the scene, make sure the snowman and the trees are hidden in Design Mode.
Go back to the Snow-Scene component
Select the Scene-M group and set its opacity to 0
In the Show state, set the Scene-M opacity back to 100% to restore its visibility
Summary
This wraps up the exercise and gives you an opportunity to test your skills with less guidance.
If you ever get stuck, there's a final file attached to each lesson.
See you in the next lesson.
