dgreene1 / react-accessible-treeview

A react component that implements the treeview pattern as described by the WAI-ARIA Authoring Practices.
https://dgreene1.github.io/react-accessible-treeview
MIT License
261 stars 37 forks source link

possibility of animation? #160

Closed binaryartifex closed 10 months ago

binaryartifex commented 10 months ago

is there anyway at all to animate the tree nodes as they are rendered to and from the dom? this libraries almost perfect as far as dev experience and accessibility is concerned. id even settle for a toggle on the root config or a node callback that wraps each underlying ul in a parent component so we could wrap each ul in something like framer-motion....without any animation it immediately stands out in applications that have a modicum of micro interactions....

dgreene1 commented 10 months ago

This is outside of the scope of this library. But if you want to add it yourself, you can do it via the provided noderenderer function and with CSS. Please don’t ask us how. That’s why we made an issue template (which you ignored) that clarifies that we can’t answer Stack Overflow style questions. Please take this question there after you’ve messed around with noderenderer.