Replies: 1 comment
-
I had a similar issue and I found that using const AnimtedStyledDiv = animated(styled.div); |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Not animated.
How do you use it in
styled-components
?This is fixed at 200px.
changed
width: ${props => props.number * 200}px;
to
width: ${props => props.number.interpolate(number => number * 200)}px;
Not applicable.
I want to know how to calculate in styled-components without passing style
Thanks
Beta Was this translation helpful? Give feedback.
All reactions