react-arborist icon indicating copy to clipboard operation
react-arborist copied to clipboard

How to integerate the tree with animation libraries

Open majidsajadi opened this issue 1 year ago • 3 comments

Hi.

How can we integrate the tree with animation libraries like react-spring or react-motion. for purpose of adding transition for toggling a node?

majidsajadi avatar Dec 03 '22 16:12 majidsajadi

I haven't tried to do this yet, but I would love to add it at some point. What would those libraries need from react-arborist to do their thing?

jameskerr avatar Dec 03 '22 22:12 jameskerr

i guess the material tree view component is a good example for integerating external animation library. https://mui.com/material-ui/react-tree-view/

majidsajadi avatar Dec 06 '22 07:12 majidsajadi

You can use https://headlessui.com/react/transition

mooijtech avatar Dec 06 '22 08:12 mooijtech