Answer the question
In order to leave comments, you need to log in
What lib or approach to use to implement collapse/expand animation in React.js?
the next element will collapse (decrease in height) and expand (increase in height) along the wedge on the icon in the upper right corner.
I need advice on how to do this in React.js. what library to use for this or maybe you can get by with a simpler solution
Answer the question
In order to leave comments, you need to log in
Simple solution, use animation on classes:
set transition, then change css class on click. Specify the height in the class. Due to the fact that there is a transition - the height will change smoothly.
ps still can help - documentation
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question