Animations, Scroll

Framer Update: Scroll Animations

Framer Update: Scroll Animations

Framer Update: Scroll Animations

Benjamin

·

12:48

·

124K views

·

About this lesson

This update adds Scroll Animations to Framer. Add high-fidelity effects and animate variants within specific sections, like switching your topbar to a different theme on your landing page, or playing a video only when it’s visible. It brings the magic of Motion to Framer, and we’re very excited to see what you’ll be able to create with it.

Remix the demo here: https://topbar-animation.framer.wiki/

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

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

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

#website #framer #scroll #motion

0:00yo my name is Benjamin and in this video0:03I'm super excited to tell you all about0:06scroll animations in framer a brand new0:09feature we're bringing the magic of0:12framer motion to the framer app allowing0:15you to do so much more so let's have a0:18look at this demo project to explore0:21what is now possible with scroll0:24animations I'll start by going over how0:27this webpage is currently set up so here0:30we have a top bar that is fixed to the0:34top of the viewport below it we have a0:37header that spans the entire height of0:40the viewport and right below that we0:43have a few sections each with a unique0:47section name this used to be called0:49scroll Target and we now call it Scrolls0:53section we've renamed this because you0:55can now do more with this than just0:58Target specific sections to to scroll to1:00we also made sure that these are now1:03reflected in the layer panel making it1:06easy to identify which layers you've1:08given a unique section name for example1:12here we have a features section right1:15below that we have the feature Dash grid1:19section The yellow section is called1:22bundle and the final section is called1:25specs so that's pretty much what we have1:27so far let's also go ahead and give this1:30a little preview so we have our top bar1:33that's fixed to the top of the screen1:36and then we have our header here that1:39occupies the full viewport height and1:42then we have our sections below1:45now for landing pages like these you1:48often might want to do something with1:51your navigation when scrolling fast or1:54within a certain section like show or1:57hide it animate it or even change the2:01dint and Link colors for this page it2:04would be lovely if our top bar turned2:06into a yellow variant in the yellow2:09section and a darker variant in the2:13final section so in this component I2:16have already set up three variants for2:19each of these sections light dark and2:22yellow and I'll show you how we can2:24switch between these within a specific2:27section in a little bit but there are2:30more cool things we can do with our top2:32bar we could also hide it initially and2:36only slide it into view as we scroll2:38past onto the banner below the header so2:42let's give this a try with the top are2:45selected I can head over to the effects2:48panel in the property panel and I'll2:50click on appear animation now an appear2:53animation will trigger on page load as2:56it says over here which is not really2:59what we're after we are looking for the3:01trigger section in view3:04which will trigger an animation as we3:07scroll past a certain section the3:09section right below the header is called3:12Banner and we can select that as the3:15section as that is the point from which3:17we would like to bring back our top bar3:20I would like to trigger this animation3:23as soon as the top part of the banner is3:27in view so the start property here is3:30set correctly I also want to make sure3:32that if we scroll back up the navigation3:35is once again hidden so I want to go3:38ahead and set replay to yes here we3:41could pick a preset I'll select slide in3:44top3:45and then right below that we could3:48customize the enter and the exit3:50animations3:51this works the same as the other effects3:54do in framer which you might have3:56already used before I'll set opacity to3:591 and offset y to minus 80. which is the4:04height of our top bar and this will make4:07sure we position it off screen by4:09default I'll also make the spring4:12animation a little bit slower so our top4:15bar is now correctly initially hidden4:17however we also want to make sure that4:20the top bar stays visible as we scroll4:23past the banner and onto the features4:26section so we don't need an exit effect4:29and I can click on the X to delete it4:31now let's give this a preview to see4:34what we have made so far so our top bar4:37is correctly hidden from View and as4:40soon as we scroll past the banner it4:43nicely animates into view and if we4:46scroll back up it will once again hide4:50and that is the replay property at work4:53and as we scroll further down below the4:56banner the toolbar stays in View and5:00this is because we removed the exit and5:03animation5:04so this is really nice and we can now5:07continue with the variants so with the5:11toolbar selected I'll click on effects5:13and select scroll variant we once again5:17want to select section in view as the5:20trigger as we want to switch variants5:23within specific sections the scroll5:26variant effect allows us to select a5:30variant to animate to the section right5:33below the banner is called features but5:35it matches the light theme of our top5:38bar so we don't want to switch to this5:41one just yet instead we want to go ahead5:44and select the bundle section which is5:47the yellow section5:49and from here we can set the variant to5:53be yellow5:54and this might be another good time to5:57give our web page a little preview I'll6:00scroll down a bit6:02as we scroll past the banner the6:04navigation bar appears and as we scroll6:07past the bundle it turns yellow6:11this is great but as we scroll onto the6:14specs section we also kind of wanted to6:18switch to a darker variant again as to6:21there the Yellow Version is a bit much6:23as a reminder we have the yellow section6:26here which is called bundle and then6:30right below that we have the darker6:33section which is called specs so how do6:36we add this extra variant switch I'll6:39reselect the top bar and I'll go back to6:42the scroll variant effect and in this6:45pop out you might have noticed there's a6:48button called add section this allows us6:51to add another section and to Define6:53another variant to switch to allowing us6:57to create little sequences so I'll7:00select the specs section and the dark7:03variant so we have now created a little7:06sequence7:07our top bar starts out in the light7:10variant as we scroll past the bundle7:13section it switches to yellow and then7:16as we scroll from the bundle section7:18onto the specs section it will switch to7:21the dark variant now it's time to give7:24this another preview7:27our top bar slides in7:31turns yellow and then it turns dark7:35so this is great and we have now created7:38a fully functional sequence using scroll7:42animations and scroll variants these new7:46features are fully compatible with7:49smooth scrolling as well so let me add7:52some links to show you I'll select the7:55features text layer7:57add a link pointed to the home page and8:01then I'll select the features section8:03and I'll set scroll to smooth8:06and I'll go ahead and do the same thing8:08for the other layers here8:11I'll point this one to bundle8:15and I'll point the final one to specs8:20with all links in place let's go back to8:24the home page and give it another8:25preview8:27and now if I click on the links it will8:31smoothly scroll to the specific section8:35and it will also still nicely animate8:39the top bar to the matching variants8:44so this is quite lovely now you might8:47have noticed that the top bar switches8:51when the bottom of the top bar hits the8:55top of the section and this is also8:58where our links smoothly scroll to9:01this was achieved by setting offset y to9:0580 pixels in each scroll section9:09and again 80 pixels is the height of the9:12top bar so now the offset y property not9:16only allows you to add an offset to the9:19scrolling position it's also now taken9:22into account if you use scroll9:24animations like scroll variant where it9:27impacts when to switch so we make sure9:31that these two are always in sync giving9:34you full control finally let's also make9:38sure our CTA here Scrolls you to the9:42next section9:44I'll add a link and I'll point it to the9:48features section with scroll set to9:50smooth and if we now give this a preview9:54clicking the learn more link now9:57smoothly Scrolls us to the features10:00section as the navigation bar also10:03slides into view very nice there is one10:08final use case I want to show you10:12and that is in this little features grid10:14I have this feature video component with10:17two variants one where the video is10:21pulsed and another where the video is10:24playing10:25prior to this release you could only add10:28scroll effects as the layers themselves10:30scrolled into view but oftentimes you10:34want more control like here on larger10:37displays the video is already visible as10:39soon as the grid Scrolls into view so10:42really we want to tell framer hey start10:45playing this video as soon as the10:48feature grid is in View and this is now10:51possible10:52I'll add a scroll variant effect to the10:55feature video10:57and I'll select the section in view11:00trigger11:01I'll select the feature grid as the11:04section and we'll switch to the playing11:07variant we can then add another section11:10to set the video back to past as we11:13scroll onto the bundle section this11:16makes sure the video is only playing11:18when we can actually see it and that's11:21all there is to it we can now give this11:23a preview to see how this works I'll11:27slowly scroll towards the section11:30so now as we can see the video is still11:32past because we haven't hit the feature11:35grid11:36and as soon as we hit the feature grid11:38the video starts playing11:41as we scroll to the bundle section now11:44the video is pulsed which should help11:47with performance11:49and as soon as we scroll back up the11:52video is once again playing11:53and this also works with our smooth11:56scrolling links this is great as it11:59allows you to control the viewing12:01experience of your content to make sure12:03that it's consistent for every user of12:06your website no matter how much time12:09they've spent looking at your header for12:11example everyone will see the video12:13right from the start12:16that's pretty much it for this video12:18this release allows you to do so much12:21more with effects in framer and we're12:23very excited to share it with you and as12:26always thank you so much for watching12:28and stay tuned for more updates coming12:31soon12:40[Music]

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.