Hello everyone,
After investing numerous hours, I successfully designed an intricate expand-and-collapse navigation system using variables and components from a library. I incorporated rules to establish transitions between these components, as demonstrated in @miggi presentation at the Figma event.
Here are the steps I followed to create this dynamic navigation:
-
Begin by crafting a component with multiple states.
-
Utilize smart animation to transition smoothly between these states.
3)Create a text variable to represent each state within the component.
-
Establish an additional text variable designed to toggle between all available states; consider naming it ācurrentState.ā
-
To work some magic, simply set each state variableās value to match the name of the corresponding component state. Figma will automatically recognize these associations.
Assign the ācurrentStateā variable to the element on the frame responsible for toggling between different states.
With these steps, youāre all set! However, thereās a small spoiler alert: I encountered an issue when attempting to convert this beautiful navigation into a component. A vexing message popped up: āRemoved variant bindings from nested instance.ā This problem nullifies the use of variables in the prototype, leaving us with the frustrating Pasta View.
So, thatās the challenge Iām currently facing. If anyone has any insights or solutions to resolve this issue, your input would be greatly appreciated. Letās crack this conundrum together!