Creating complex interactions with interactive components — Lists
Let’s create a fade-out list component interaction in Figma using interactive components.
List Interaction:
Many products use lists and have an archive or delete feature by just swiping out the list. Mailing and messaging apps are known examples that have this feature.
Let’s start with the layout. How to design the list layout to achieve this animation?
Step 1: Create a mail list component and icon layout. Combine both the components into a single component placing icon layout at the bottom and card component at top.
If you need the delete component to be placed on the left side, keep the component on left. Similarly, it can be on the right side or on both sides based on your preference.
Step 2: Now move the mail list component to the right so that the icon component which is behind is visible. Create this as an individual component.
Step 3: Create a coloured component with the colour you used in the above icon component and make sure you keep the same width and height as the mail list component.
Make the same component as zero-height. (You can make a frame as zero height or width by setting their values as .001)
Please make sure all the above individual components are combined together as variants.
Mail List Interaction:
Step 1: Combine the mail list component with the component where the icon component is visible. Let the trigger be on drag and animation as a smart animate.
Step 2: Now combine the second component with the coloured component and make the trigger as on tap and animation as smart animate.
Step 3: Let’s combine the coloured component and the zero-frame component. Let the trigger be after delay and animation as a smart animate.
That’s it. Now you can use the mail list variant in the design and make sure that you use auto-layout to combine the mail lists.
Note: Make sure you use auto-layout to combine the variants.
Hope you have learned to make fade-out mail lists with the interactive component method. To learn more about components, design systems, and Figma as a tool, check this list of blogs.