I need to create a React component that displays multiple rows (For this thread, let's just say each row correspond to a string. In reality, I need to create another component per row).
I want the following behavior every time the contents change:
I've tried multiple strategies, but I can't get the animations to work one after the other.
Am I missing a simple solution? Is there a component out there that does this?
If your row has static size, then you can use animation-delay
property in css.
If your animations are triggered by upper row components' animation end event, you can add onAnimationEnd
listener to your components. you can call Element.animate()
function inside the listener.