Search lessons...
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:
[VIDEO: Final result]
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
[GIF: importing and positioning trees]
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
Set it to 50% opacity so you can see the trees underneath while you work
Select the rectangle and group it (Cmd/Ctrl+G). Rename the group to Trees Mask
Select the tree shapes and group them. Rename to Trees
Set Trees Mask as the Clipping Mask for Trees
[GIF: setting up the mask group]
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
Set the mask opacity back to 0% so it's invisible
[GIF: mask moving below trees]
Step 4 - Set the Start State
In Design Mode, 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 scene isn't active.
Step 5 - 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 around frame 40 and add a keyframe on the mask's Position Y - with the mask below the trees (hidden)
Move 20 frames forward and add another keyframe where the mask moves up to reveal the trees
Add Ease In to the motion
Since this is on the existing Show timeline, the reversed Hide animation already takes care of hiding the trees. Nothing else to set up.
[GIF: mask reveal animation on timeline]
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.
[GIF: final result in context]
4:37
Ready to start building?
One course. One project. Everything you need to go from zero to shipping Rive animations in real products.
