Can I get div's height/offsets before useTransition runs? #864
Unanswered
mostrecent
asked this question in
Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
🤓 Question
I have a question re your list reordering example https://codesandbox.io/embed/1wqpz5mzqj
It needs pre-set heights in the data collection to run. How can I get it to work without setting the heights manually before? I thought about getting the div's offset just before useTransitions runs but the actuals div rely on it running first.
Somehow framer-motion manages this kind of animation without setting heights manually: https://codesandbox.io/s/framer-motion-reorder-animation-bviz6?fontsize=14&module=%2Fsrc%2FExample.tsx
Beta Was this translation helpful? Give feedback.
All reactions