How can I get a derived value from a SpringValue? #2272
Unanswered
takeItIzzy
asked this question in
Support
Replies: 1 comment
-
I found solution: {/* header */}
<animated.div style={{ y: y.to((v)) => -v }} /> But I still wonder if it is the best practice that set |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a draggable table, and I want the header sticky:
I want to do some complex animations when dragging,so I use
use-gesture
instead of scroll events.Since the
transform: translate3d
has been applied to the table, theposition: sticky
on the header won't work. So I want to get-y
to balance they
of table, but the code above won't work.Is there a way to implement this? Or is there some better implements?
Beta Was this translation helpful? Give feedback.
All reactions