Animations, Navigation, Scroll

Framer Update: CMS Sections

Framer Update: CMS Sections

Framer Update: CMS Sections

Benjamin

·

8:09

·

23K views

·

About this lesson

This release adds support for Scroll Sections to be defined within CMS Collection Lists. This means you can now link into CMS Content directly, as well as apply Scroll Effects like Scroll Animations and Scroll Transforms, unlocking all new creative use cases.

Remix Demo: https://indx.framer.wiki/

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

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

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

0:00yo my name is Benjamin and in this video0:03I'm excited to introduce CMS support for0:07scroll sections this new feature unlocks0:10new use cases for both linking and0:13scroll effects so let's dive into our0:16demo project to see how this works so0:20let me bring up the preview to show you0:22what we have so far0:25so we have a fixed sidebar and then a0:28scrollable list of images the images0:31have a little Parallax effect and none0:35of the links in our sidebar do anything0:38just yet all of the content in our demo0:42project is sourced from a single CMS0:44collection and this collection currently0:47contains four items now let me jump back0:51to the canvas to show you the collection0:54lists this is the first one and it's0:58repeating an item component for every1:01item in our collection1:03and then this is the second one that1:07actually visualizes all of the images1:10and we would like to connect the two so1:14clicking on any item on the left Scrolls1:17the page to the matching item on the1:20right plus it would be ideal if the1:23items in the sidebar had an active State1:26showing you which item we're currently1:28viewing so I'll start by adding a scroll1:32section to every image in the collection1:36list on the right1:38and we can call this card or project1:41I'll go ahead and call this one project1:43and because layers within a collection1:46list get repeated we only have to define1:50a section once let's start by fixing our1:55sidebar I'll select the component here1:58and I'll double click to show you how2:00it's set up this component has two2:03variants one called inactive and one2:06called active that highlights the item2:09let's start by connecting the title2:12variable to the title field from the CMS2:15making each item unique2:18that's much better next let's add our2:21links2:23our sections are on the home page2:27they're called project2:30and having selected our section I'm now2:34presented with a new property called2:36item2:37and framer now detects that our section2:40exists four times on our page one for2:44each item in our collection2:47so we could use this to link to a2:50section within a specific item in our2:53collection like the notice project here2:58however doing this means that every3:00single one of our links always points to3:03the same item now we would like for each3:07of our links in the sidebar to point to3:11the matching item from our CMS3:13collection to do this we can go back to3:16our link and instead of pointing item to3:20a specific one we can click on the3:23little plus here to use the slug3:26variable the slug is the unique3:29identifier for every single item in our3:32collection3:33and as you can see I can now click any3:36one of these links to smoothly scroll3:38the page to the matching section from3:42within our collection lists3:45now we can apply this same concept to3:48scroll effects so let me add a scroll3:51variant to the items within our3:54collection list3:55I'll select section in view as the3:57trigger set the viewport to Center and4:01I'll select the project section and I'll4:05again turn item into a variable to4:08reference the slug4:10I'll switch the variant to active and4:14just like that we connected the two4:16collection lists and as I scroll past4:20the page the corresponding item in the4:23sidebar will highlight4:26and this also now works on click4:30so every item in the left hand sidebar4:33has a link that points to the matching4:36section on the right4:38plus they have a scroll variant effect4:41that checks if said section is in View4:45and if it is it switches the variant to4:49active4:50next let's add a scroll animation effect4:53to our cards on the right4:57I'll set the trigger to section in View4:59and I'll again select the project5:02section5:03and set item to the slug variable5:07viewport to Center replay to yes5:12and then for the effects I want to dim5:14the inactive ones and push them a little5:17bit to the right5:19and I'll keep the transition for now5:23so we can have a look at what this does5:26so far5:27so our effect is working but I think the5:31transition is a little fast so let's go5:33back and make this just a little bit5:36slower5:37I'll reopen the scroll animation and5:40I'll set the enter and exit transition5:42to a lower stiffness value of about 200.5:47and after republishing that's feeling a5:50lot smoother5:52and we have this cool layered effect5:54happening where we have our scroll speed5:57Parallax on the image and the dimming6:01and X offset happening on the wrapper of6:05the image6:06finally we can also add some scroll6:09animation effects to the text layers in6:13our cards6:14and I think you know the drill by now6:16we'll again use section in View and6:19we'll make sure that the item is set to6:22the slug variable this ensures that it6:25works for every single item in our6:27collection list6:29and I'll simply have this one appear6:31from the bottom6:34and what I can do now is right click on6:37our text layer and hit copy effects and6:40I'll right click on the other text layer6:42and I'll paste the effect6:45and then I'll add a bit of delay between6:48the two I'm thinking 0.1 for the first6:52and 0.2 for the second one6:55and now let's have a look at the final6:58result6:59every item in the sidebar correctly7:02highlights and smoothly Scrolls to the7:04matching section7:06plus every image fades in from the right7:10and has a little staggered text7:12animation within it and all of this with7:16content that's sourced from the CMS both7:19for the links and for the images now you7:24can get creative in applying these7:27features as these features unlock new7:30types of websites to be designed in7:32framer using CMS content and Concepts7:36like linking smooth scrolling scroll7:40variants scroll transforms and scroll7:43animations and that's pretty much it for7:47this update video you can find remix7:49links for these Demos in the description7:52down below thank you so much for7:55watching we really hope you like these7:58new features and stay tuned for more8:00updates 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: 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.