Templates, Navigation

Layout Templates: Mobile Menus, Page Effects, and Sidebars

Layout Templates: Mobile Menus, Page Effects, and Sidebars

Layout Templates: Mobile Menus, Page Effects, and Sidebars

Benjamin

·

5:02

·

8.5K views

·

About this lesson

This release introduces new Layout Template workflows and fixes. First, we’ve made it easier to design mobile menus in Layout Templates that work consistently across all platforms, like Safari on iOS. No custom workarounds needed. Next, layers in Layout Templates can now be excluded from Page Effects. And finally, in this video, learn how to make a Layout Template customizable with Variables to support unique layouts, like documentation pages with sidebars. https://www.framer.com/updates/layout-template-updates

🌞 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:00yo my name is Benjamin and in this video0:03I'd like to show you some extra layout0:06template use cases starting with mobile0:10navigations here on desktop our0:13navigation switches back to its default0:15State when we switch Pages now let's0:19have a look at the mobile version as we0:21switch Pages the navigation stays open0:25this is something we don't want on the0:27phone breakpoint so let's go ahead and0:30fix in the navigation you'll see we use0:33interactions to switch between the phone0:36closed and the phone open variants with0:39layout templates we have full control0:41over these states meaning we can decide0:43what happens when we switch pages so to0:46fix the previous issue I can select0:49these links and add interactions that0:52say onclick go back to the closed0:55variant so for each link I'm adding an0:58interaction back to the closed variant1:02and there we go so this should do the1:04trick let's go back and give this1:06another1:08preview so let's open our menu and now1:12when I click any of these links our menu1:14gently animates back to its default1:18State and we have full control over the1:21transition and animation settings here1:24for example if we wanted this to be1:26instant we can go back to the component1:30select this variant and set the1:33transition property to1:35instant and then our links will behave1:38just as if there were no layout1:39templates applied at all this is up to1:42you you have full1:46control next we have a new property1:48allowing you to define whether or not a1:51layer should be included or excluded1:53from page effects sometimes you don't1:57want elements like this navigation to be2:00included in the page effect transition2:04so I will select the layers I wish to2:06exclude go to the Styles menu select2:09page effect and this will be set to2:11exclude by default now if I go back you2:14can see that these elements ignore the2:18existing page2:19effects finally let's have a look at2:22using a single layout template with2:25properties to adapt to different use2:27cases on this website we have a layout2:31template with a top bar and a footer but2:34we also have documentation Pages where2:37we wish to add a sidebar so we can add2:40this sidebar to our layout template and2:43I have it right here with position set2:46to fixed but it's overlapping our footer2:50and if we go back to the homepage you2:52can see it's now visible on every single2:55page this is not ideal so we could use m2:59multiple templates but in this case I3:01want documentation to be a part of our3:04top bar navigation with a shared layout3:07animation so it benefits from being in a3:09single template so what I'll do instead3:12is I'll add a new toggle variable and3:14I'll call it sidebar and we can use this3:17to control multiple properties within3:20our layout template most pages won't3:23have this sidebar so I'll set the3:25default to no then I'll first connect it3:28to the visible property of my sidebar3:31component to make sure it's hidden when3:34the sidebar is set to know then I'll3:36select the entire desktop breakpoint3:38here and I'll connect this variable to3:41padding allowing us to convert the yes3:43or no value to Unique combinations of3:46padding simply put when this sidebar3:49value is set to yes I want to make sure3:51padding left is set to 200 pixels and3:54when it's set to no use our default3:57padding values and that should do the4:00trick just like that we made a4:02customizable layout template we have4:05this sidebar property set to no on all4:08pages and I can go to the documentation4:11index and CMS detail pages and set it to4:15yes so first the index page and then our4:19detail pages and that's it everything is4:22set up4:24correctly and now if we give this a4:26preview you can see we get the correct4:29layout for our sub Pages we get an4:31active State animation to the4:33documentation pages and we have a custom4:36sbar layout on these docks that's it for4:41this video thank you so much for4:43watching I hope it was helpful and stay4:46tuned for more updates coming soon4:57[Music]

Watch on YouTube ↗

More in this topic

How to get the most out of Framer for Free4:05
How to get the most out of Framer for Free
Animations15K views · 8 months ago
Framer Marketplace: Introducing Components1:16
Framer Marketplace: Introducing Components
Announcement9K views · 10 months ago
Framer Update: Linking with Rel, Parameters, and more2:18
Framer Update: Linking with Rel, Parameters, and more
Framer Update8K views · 1 year ago
Framer Update: Layout Templates8:51
Framer Update: Layout Templates
Framer Update100K views · 1 year ago
Framer Marketplace Update: Creator Dashboard1:46
Framer Marketplace Update: Creator Dashboard
Framer Update6K views · 1 year ago
The New Framer Marketplace1:46
The New Framer Marketplace
Announcement6K views · 1 year ago
AI Startup Website Kit - Free for Framer and Figma0:40
AI Startup Website Kit - Free for Framer and Figma
Templates448K views · 1 year ago
Framer Update: App History2:35
Framer Update: App History
Framer Update4K views · 2 years ago

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