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

animationName property does not conform to Property.AnimationName #423

Open
jonsadka opened this issue Jun 11, 2022 · 1 comment
Open

animationName property does not conform to Property.AnimationName #423

jonsadka opened this issue Jun 11, 2022 · 1 comment

Comments

@jonsadka
Copy link

Issue:
Per Styletron docs, keyframes takes the entire animation object to be set as animationName, however TypeScript throws an errors because animationName should be equal to Property.AnimationName | undefined per https://developer.mozilla.org/docs/Web/CSS/animation-name

Code Sandbox:
Repro case (FYI takes a minute to load):
https://codesandbox.io/s/staging-sea-flnccp?file=/src/App.tsx

Error:
Type '{ from: { marginLeft: string; }; to: { marginLeft: string; }; }' is not assignable to type 'AnimationName | undefined'.
Screen Shot 2022-06-10 at 6 10 37 PM

@jonsadka
Copy link
Author

cc @rtsao

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