Closed fev4 closed 5 years ago
ReactMotion is a pure JavaScript solution. It is not possible to use css calc as part of styles
object. It was unfortunate naming, it is just a map of interpolated numbers, not actual styles.
0.5vw
is window.innerWidth * 0.05
I guess... You can use it instead. 3.25em
is harder though still possible.
Thank for the help @nkbt ! Solved it with your last comment.
I'm trying to accomplish the following while using Fluid Typography/UI:
But it doesn't. In the end we would have a literal inside another. How can I avoid this and in the end achieve the desires result of
translateY(- calc(3.25em + 0.5vw))
? Any experience with this?Thanks for you time and thanks for reading!
Edit: Here's a working example of what I'd like to achieve. In this case I'm not using
calc()
there, but that's the problem.