I am new to EX, and this is my first post so apologies in advance if this question has already been addressed. My scenario is this:
I am creating an FAQ page with questions and corresponding answers.
I want the answer to be hidden until the user clicks a symbol for example a ‘+’ sign or a ‘down arrow’ symbol to reveal the answer then click the reveal symbol again to hide the answer or leave it revealed if that’s what the user wants.
What functionality in EX can achieve this requirement?
You need to use Velo for this.
Basically need to create a container with a grid of 2 rows .
The first row will contain the button and the second row will contain the answer - its height should be max-content .
The element of the answer should be set to collapse on load so answer will be hidden and the row height will be zero.
Then you need to add a code that every time you click on the button it will expand to the answer.
@md60th Heya, thank you so much for the code help!
I saw your live example and am still unclear on how you get one half of a container grid to be collapsed without it collapsing the other half of the grid.
Also your example has the preceding item boxes move down when a box expands.
How have you achieved this?
your example has info on the arrow animations but im more interested in how the boxes work