Let’s make an accordion in Figma!
1. Start with three elements: a text layer for label, a chevron icon, and a text layer for the description.
2. Select the label and the chevron, and apply auto layout. Set the vertical padding to 12 and rename the layer to “header“.
3. Select the description text layer and apply auto layout. Set the padding-bottom to 12 and the rest of the paddings to 0. Rename it to “panel“.
4. Select the header and panel layers, and apply auto layout. Rename it to “accordion“ and set gap between items to 0. Then enable the clip content settings.
5. Add a bottom stroke to the accordion, and turn it into a component.
6. Add a second variant, and rename the two variants to “collapsed“ and “expanded“.
7. In the collapsed variant, click and drag the bottom bounding box so that it resizes to fit the header layer and hide the content in the description layer.
8. Select the chevron icon inside the collapsed varian
2 views
514
208
3 months ago 00:18:18 1
Tank: Tiny Desk Concert
3 months ago 00:03:05 1
Dons - Hollow | Latvia 🇱🇻 | Official Music Video | Eurovision 2024
3 months ago 00:02:53 1
DISAPPEARANCE FESTIVAL [Kagamine Rin] [Original Song]
3 months ago 00:51:02 1
Led Zeppelin Live Montreal Forum February 6 1975
3 months ago 00:11:26 1
FITS EVERY SIZE💥This Dress Will Be Your Favorite In Summer 💥 VERY EASY
3 months ago 00:01:00 1
😱Homeless Talent - Amazing Street Singing🔥Boyz II Men - End Of The Road
3 months ago 00:04:16 1
Dax - “Wack Ass Rappers“ Freestyle [One Take Video]
3 months ago 00:27:20 1
Giethoorn ’Venice Of The 🇳🇱 Netherlands’ [8K HDR] Walking Tour
3 months ago 00:04:12 1
In Hearts Wake - Farewell (Official Music Video)
3 months ago 00:09:23 1
How to Find a Dropshipping Suppliers Today: Unveiling the Ultimate Guide😎