An accordion style F.A.Q. component that is vastly used in a lot of websites. In addition to the standard expand and collapse animations, I have added in a fancy little interaction to focus on each F.A.Q. item. The additional interaction can be easily removed as it's a separate interaction from the expand and collapse.
If you require any assistance in implementation or need any guide, feel free to text me. I'll get back to you as soon as possible.
Have fun cloning. 😉
So, as usual, I tried to make the clone as easy as possible to be copied . Just copy the element named, 'Cloneable Area' and rename it or you can copy all the elements within that class.
Both question and answer are placed within the same row and container for easier management.
The main interaction involved here is 'Mouse Click (Tap)' that create the animation for expand and collapse. It is targeting the main container of each row, so that user can click on anywhere within the row/container to expand or collapse an item.
Using the same interaction trigger as above, I created an animation to rotate and resize the icon to shape it from a plus to minus.
To make things a little livelier, I added a nice little touch up to the paragraph by creating a slide in animation from below. So, instead of being still upon expand, it will slide in from below nicely.
I added a focus/highlight effect to make the item that's on hover stands out from the rest. This helps the user to focus on the item that they are reading.
This is definitely optional. You can remove this animation from the interaction setting. It's a separate interaction from the expand/collapse.