Framer Update, Animations

Framer Update: Masking

Framer Update: Masking

Framer Update: Masking

Benjamin

·

9:20

·

35K views

·

About this lesson

The April Update brings Masking to Framer. Add masks to your layers with a single click, then customize using gradients and images. Stack multiple masks on top of one another to unlock new creative layouts. Framer supports alpha masking, luminance masking, and compositing with multiple masks. The possibilities are endless, and you can add masks to any type of layer, like images, videos, components, and more. For everything else that’s new, see our changelog here: https://framer.com/updates/april-update-2024

🌞 Start for free: https://framer.link/yt

📚 Learn more at: https://framer.link/yt-academy

💎 Join the Community: https://framer.link/yt-community

🎉 Follow on X: https://framer.link/yt-x

0:04[Music]0:27oh0:30[Music]0:36yo my name is Benjamin and in this video0:40I'm excited to introduce masking a new0:44feature we're adding to the April update0:47let's dive right into it here we have an0:51image and I'd like some parts of this0:53image to be faded out gradually0:56sometimes you can use gradients for this0:59but that won't work with themes or1:01different backgrounds in general to add1:04a mask I can head over to the Styles1:06property here and select mask this will1:10default to an alpha mask using gradients1:15where you can use any of our gradient1:17tools to Define custom masks I can also1:21edit these masks directly on the canvas1:25we can rotate it to change the angle and1:28we can edit and add new gradient stops1:32and for each gradient stop you can1:34control the alpha value when set to zero1:37that part of your content will be1:39completely invisible and when set to 1001:43that part will be completely visible so1:46I'll bring in this top as well and then1:49I'll add two more and for these inner1:51ones I'd like to set Alpha to1:55100% And for the outer ones 0%2:01and now we can tweak the positioning of2:04each stop to correctly mask just the2:08parts I would like to mask of this image2:11so you get complete control over your2:14mask and best of all we're still dealing2:16with a single layer once done you can2:19edit this layer as you normally would2:23and we're using an image here but it2:25could even be a video or a component as2:28well those are the very basics of alpha2:31masking in framer and you can use this2:33for more creative use cases like2:36recreating a progressive blur effect2:40which here I did by stacking multiple2:42layers with an increasing background2:44blur and each layer revealing a2:47different part of the gradient so if we2:50open one of these you can see they're2:52just Alpha masks like the ones we looked2:55at before and by combining features like2:58these you can create pretty cool3:01customizable3:06[Music]3:07setups here I connected each of these3:10blurs to a visibility variable so we can3:14toggle the before and after on the3:19instance next let's have a look at image3:23masking instead of just using gradients3:26you can also upload your own images to3:29be used as masks for example you can3:32upload your own svgs and use them to3:36mask any layer in framer and you can3:39also customize the sizing and3:41positioning of your uploaded image here3:45I just added a few variants each with3:48their own SVG mask and then cycled3:51between each variant while using svgs3:56with Alpha masking is probably most3:58common we also added some more modern4:02properties like luminance masking where4:06you can upload other bngs or even gifs4:10to use as the mask of any layer in4:14framer so here I uploaded this animated4:18gif and set mode to luminance which4:21looks at the relative luminance values4:24of your uploaded image in this case all4:27the light parts are visible4:30and the dark parts are hidden at the4:33time of recording animated gifts don't4:36work well as masks in Safari so please4:40use this with4:42[Music]4:43caution next let's have a look at radial4:46gradient masking to solve a common UI4:50pattern this is a stack of images and we4:54would like to separate these images4:56using a sort of Border without using4:59using real borders as that wouldn't work5:02on any given background so I'll add a5:05mask set it to radial move this color5:09stop to the5:11right move the gradient to the center5:15and by holding shift scale it up just a5:18little5:19bit I'll snap it to5:220.54 then I'll copy this mask and paste5:26it onto the next image5:31and just like that we have a stack of5:34user images that work well on any given5:38background we also added support for5:41stacking multiple masks on top of one5:44another so here I have two masks and5:48it's just a simple SVG Circle this one5:52is positioned at the bottom center and5:55this one at the top Center by default5:59these are additive so these two circles6:02get combined into a new shape when you6:06stack multiple masks we allow you to6:09control a property called composite with6:12four options add subtract intersect and6:18exclude and this influences how this6:22mask renders in relation to the mask6:25layer below it so you can create all6:28sorts of unique effect effect if you've6:30ever used a design tool to edit multiple6:34shapes this is essentially the same as6:37Boolean operations but then for masks6:40and you can even sort your masks to6:43quickly iterate between different setups6:46this property only works when there is a6:49mask directly below it but you can still6:52freely sort and will remember the value6:55you defined even for the last mask6:58unlike boot operations when editing7:01Vector shapes these masks can be applied7:04to responsive elements unlocking all7:07sorts of creative and unique setups so7:10next let's have a look at a more7:13realistic example of how you can7:15incorporate multiple masks in a7:18responsive7:19setting here I've made a simple7:22responsive ticket by stacking multiple7:25masks and using the composite property7:29on the right right here we have two SVG7:31image masks with the topmost one set to7:35intersect and we've also added a little7:38border radius and on the left here we're7:41mixing two image masks as well but I've7:44added a gradient mask in between to make7:48sure you can resize freely without ever7:50seeing the edges of the image7:53masks next I'd like to point out that7:56these new properties also work within7:59component variants allowing for some8:02pretty fun new8:04interactions like this setup where8:07creating a mask that is taller than the8:09actual Avatar allows you to create8:12playful clipping8:14[Music]8:18effects and last but not least the new8:21masking property also works on8:24components like the ticker component8:27that here I've connected to two images8:30of generated noise and we also support8:33tiling for any image mask allowing you8:36to design patterns and background images8:40using masks as well and just like normal8:43patterns in framer we can customize the8:46skill I'll go for8:4975% and if we then go back and give this8:52a8:53preview you can see we've created this8:57animated. crit effect using only a9:00single ticker9:02component and that's pretty much it for9:05this video thank you so much for9:07watching and as always stay tuned for9:10more updates coming soon

Watch on YouTube ↗

More in this topic

Framer Update: Logo Shaders2:05
Framer Update: Logo Shaders
Framer Update12K views · 1 month ago
Framer Update: CMS 3.04:13
Framer Update: CMS 3.0
Framer Update14K views · 1 month ago
Framer Update: Holo Shader1:46
Framer Update: Holo Shader
Framer Update6K views · 2 months ago
Framer Update: Auto Translate3:09
Framer Update: Auto Translate
Framer Update4K views · 2 months ago
Framer Update: Stack Sorting and Bento Grids2:16
Framer Update: Stack Sorting and Bento Grids
Framer Update7K views · 2 months ago
Shader: Chromatic Aberration1:56
Shader: Chromatic Aberration
Framer Update7K views · 2 months ago
Framer Shaders2:28
Framer Shaders
Announcement23K views · 2 months ago
Framer Convert5:42
Framer Convert
Framer Update13K views · 3 months ago

Create a free website with Framer, the website builder loved by startups, designers and agencies.