-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues with css values with () #13
Comments
@wedelgaard thanks! I agree, being able to simply use Apart from that, i see two ways to resolve this without having to resort to formatters:
Help and pull requests are always welcome! |
I'ved found out its actually the regex in line 439 that seems to be the problem: var regex = /^([+-]?(?:\d+|\d*.\d+))([a-z]*|%)$/ This regex won't catch "translate(50px)" I'll try to look into it if I get the time :) |
Started playing around with a css parser based version in |
@codepunkt uh nice will look forward to it ;) |
Is this project still maintained? I notice the last updates were several years back now but I'd love to play with this and I've been struggling to get https://codesandbox.io/s/affectionate-villani-y30kz?file=/src/index.js:680-712
I can't use the formatter from Thought I'd post in case it was a simple fix 🙂 |
Not maintained anymore. Feel free to pull request a bugfix. |
First of all, awesome little plugin! I've noticed that passing spring start and target values with () seems to break the code. At least thats my assumption.
Uncaught TypeError: Cannot convert undefined or null to object : css-spring.js:647
Lets say I want to translateX(50px), this won't work. I know I could use the "formatter" to fix this issue, but it would be awesome to just have start and target to be plain style objects.
The text was updated successfully, but these errors were encountered: