Expandable section in Figma | Figma tutorial

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey everyone and welcome to my channel in this video I'm gonna show you how to create an expanding section using figma so here are some examples for you to get a better sense of this method so if you take a look at here as you can see there are a bunch of sections that are properly nested and if I click on this it gets expanded and it also gets collapsed here's another if I go over here and click on this it gets expanded so this is exactly what we're gonna create in figma so this is hypothetically our product detail page that I've created real quick and it may not really look that good but it's pretty enough for this tutorial and also I grabbed the footer and header from the figma community and not to mention its author was this guy over here you can check him out and without further Ado let's get into it so as you can see here I put a really long gibberish in introduction section and the first thing I'm gonna do is make this a frame and then I bring this all the way to the top and make sure the clip content is turned on and then I grab a button from here and we don't need that icon and I just rename this to read more perfect and in order to add a little bit of spice to this you can also create a frame here like this and make sure it is perfectly aligned I'll also make sure it is inside this Frame so now you can feel this and make it linear and make something like this perfect and I put the button inside this Frame and 24 is fine and as you can see just a little bit messed up here so you can fill this as well and now as you can see it's much better and legible so thus far we've just created the UI of this section in collapse position the next thing I'm gonna do is add interaction to this so let's go ahead and create a frame here and put this section here and duplicate it and remove this Frame from here and bring and I bring this all the way to the bottom and it's just a simple prototyping okay create a component set and connect this button to this and smart animate now I duplicate this here and make sure it is perfectly centered and 32 is fine and I bring all this stuff to the top perfect and now you're pretty much done here but here's the thing if I play this right now you may guess what will happen so let's see if I go over here and click on read more it gets over late and everything is messed up and that's not what we want so the tricky solution for this is first of all you have to create a frame from all of your sections and then you have to add Auto layer to them and finally to the whole page so let's go ahead and do it here's an overview of this product so I make this a frame and here's another section let's make this a frame as well and I think there is an unwanted frame here so I remove it alrighty so there are only five frames left it's time to add Auto layout to them like this and like this kind of like this so now as you can see there are only two other left frames left it's time to add Auto layout to the whole page perfect and make sure the vertical padding is set to zero so let's see how it works if I go over here and click on read more it works perfectly fine and that's exactly what we were looking for so let me just recap what we've done here in order to keep everything unchanged you have to make sure every single section is a frame and then add Auto layout to them and finally to the whole page I published this project to feed my community and I will put its Link in description you can check it out if you want and finally if you enjoyed this video make sure you hit the like button and if you have any thought about this you can comment it down below and see you next time
Info
Channel: FigMug
Views: 9,487
Rating: undefined out of 5
Keywords:
Id: D0KKM2ClQXQ
Channel Id: undefined
Length: 5min 43sec (343 seconds)
Published: Wed Oct 05 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.