Skip to content
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

NaN when animating rgb() color value #58

Open
varrg opened this issue Apr 9, 2015 · 0 comments
Open

NaN when animating rgb() color value #58

varrg opened this issue Apr 9, 2015 · 0 comments

Comments

@varrg
Copy link

varrg commented Apr 9, 2015

testcase: http://jsfiddle.net/qz5jcoaw/

seems to originate from https://github.com/ded/morpheus/blob/master/morpheus.js#L369

possible fix:

change: (https://github.com/ded/morpheus/blob/master/morpheus.js#L367)

typeof tmp == 'string' && tmp.charAt(0) == '#' ?

to:

typeof tmp == 'string' && rgbOhex.test(tmp) ?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant