Animations

Framer Update: Component Effects

Framer Update: Component Effects

Framer Update: Component Effects

Benjamin

·

8:06

·

22K views

·

About this lesson

This release brings Effects to Components. We support everything from Appear, Hover, Press, Drag, and Loop to Scroll Animations, Scroll Transforms, and Scroll Speed. This unlocks tons of new interactions, and it makes Effects reusable. For example, you can animate your navigation on scroll by adding a single Scroll Animation within your component. Create components with incredible fidelity. This has been one of our most requested features, and we’re excited to see what you’ll create.

🌞 Try Framer for free: https://framer.com

🎉 Follow on Twitter: https://twitter.com/framer

💎 Join Community: https://www.framer.community

0:01[Music]0:13a yo my name is Benjamin and in this0:17release we're introducing effects in0:22components and I'll show you how they0:24work here I have a navigation bar and I0:29want it to animate upwards when I scroll0:32down and vice versa we now have access0:35to all effects directly from within a0:39component this unlocks tons of new use0:43cases and it also enables you to make0:45your effects0:47reusable so I can go ahead and add a0:50scroll animation I'll set the trigger to0:53on scroll and here we can simply Define0:57our scroll effect I'll I'll set y to -1:01641:03pixels and I'll change the spring curve1:06to be a bit less bouncy as we don't want1:09it to pop back into view during the1:12animation this one looks good so let's1:14go back to the homeage and give this a1:21preview as you can see when we scroll1:24down now the navigation bar animates out1:27of view and because we were able to1:30Define this within a component it works1:34for all of our Pages out of the box any1:38page that uses our navigation component1:41will now have this scroll animation1:43effect so this makes all your effects1:47completely1:48reusable so that was our navigation1:52let's move on to the header asset here1:55let's look at appear effects and scroll1:58transforms I would like to design a sort2:01of gradual buildup of this UI so let's2:05start with the2:06canvas with it selected I'll head over2:09to the effects panel and let's add a new2:13appear effect by supporting effects you2:16can now also work with properties like2:19scill and 3D rotation in your components2:23for the canvas I mostly want opacity2:26though so I'll go ahead and customize2:29the2:30transition let's use a time of about 12:35and we can even preview these effects2:37right from within the2:39component this looks okay for now so2:42let's move on to the other2:45elements I'll select the left hand panel2:48and I'll also add a new appear effect2:51here I'll give this an offset X of minus2:55260 which is the width of the panel as I2:58would like this one to slide in from the3:00left I'll tweak the spring curve a3:03little bit add a small delay to it which3:05will tweak in the future and I'll go3:09ahead and copy this effect and paste it3:11onto the right panel here and here we'll3:14use a positive x value of 260 and I'll3:18increment the delay value a little bit3:20as well next let's grab the toolbar here3:24and make it slide in from the top to do3:27this we'll use a y offset of minus3:3060 and will make the spring a bit less3:33bouncy too so those are all the main UI3:38elements let's give this a preview so3:41you can kind of see what I'm going for3:43here but it doesn't feel right just yet3:46and this is just a matter of going back3:49and tweaking the transition values and3:52the timing of each effect I'll give this3:54one round of tweaks and then another3:57preview and this is closer but I would4:00also like to explore some staggered4:02animations for the individual UI4:05elements and since I'll be using all of4:08these same Concepts that I showed you4:10earlier in this video I'll speed through4:13this4:14section and again the real magic here is4:17that we'll be able to get this right for4:20this section and then we'll be able to4:22use this section anywhere on any page we4:25would like and it will get all of the4:28same effects4:31[Music]4:36and we're back as you can see we now4:39have a pretty cool gradual buildup of4:42the framer interface here all using4:46simple appear effects contained within a4:49single4:50component finally let's use scroll4:53transforms to add a little fake4:55scrolling interaction to the site on the4:58canvas here I'll first select this5:01parent stack and I'll add a scroll5:05transform but we would like to control5:07the start and end of this5:10transform and to do that we'll need to5:12use section in view if I go back to the5:16homepage you can see that this stack5:19right5:20here is also a scroll section with the5:25name5:27hero so let me go back back into the5:30component select the images5:33stack set the viewport to Center and5:37then here we can now Define a variable5:40for the scroll5:42section I'll just rename this to scroll5:46and we can later assign any section on5:49any page we would like to this scroll5:53transform I'll set opacity and scale5:55back to one in the from effect and in5:59the two effect I'll find a nice y offset6:03to move the final image into the middle6:07of the canvas I'll also add a transition6:10to our6:11transform this will make the transform6:14also appear smoothly when you scroll6:16with a mouse and not just on a trackpad6:19and now on the6:22homepage we can assign a section to the6:26scroll variable and if we then give this6:29is a preview you can see that as we6:32scroll from the start to the end of the6:36section our images also get transformed6:40and they appear as if they are scrolling6:42so thanks to the new section variable6:45we're able to use section in view6:48triggers within6:50components finally we can also add a6:53little scroll transform to each6:55individual image here I'll select layer6:58in view as the trigger and let's set the7:01from state to opacity zero and then the7:05two state is already just fine with7:08opacity and skill set to one and we can7:11customize the transition as7:13well and then we can just copy and paste7:16that onto all of the7:19images if we now give this a preview you7:23can see that the images not only appear7:26as if they are scrolling they also add7:29animate into view as we scroll the7:31entire page and all of this within a7:35single component and that's pretty much7:38it for this video we're super excited7:41about this release and we can't wait to7:44see how you'll use effects in components7:47thank you so much for watching and7:50please stay tuned for more updates7:53coming7:56[Music]7:58soon

Watch on YouTube ↗

More in this topic

Framer Update: Logo Shaders2:05
Framer Update: Logo Shaders
Framer Update12K views · 1 month ago
Framer Update: Holo Shader1:46
Framer Update: Holo Shader
Framer Update6K 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 Update: Flow Effect in Layout Templates2:12
Framer Update: Flow Effect in Layout Templates
Framer Update10K views · 3 months ago
Building an Expanding Article Stack in Framer13:14
Building an Expanding Article Stack in Framer
Animations4K views · 4 months ago
Scaling a clipped image on hover in Framer5:41
Scaling a clipped image on hover in Framer
Animations7K views · 5 months ago
Making elements revolve in Framer3:38
Making elements revolve in Framer
Animations5K views · 5 months ago

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