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

Motion: export duration variables in JavaScript with the carbon/motion package #6779

Closed
jendowns opened this issue Sep 3, 2020 · 1 comment

Comments

@jendowns
Copy link
Contributor

jendowns commented Sep 3, 2020

Summary

Currently the @carbon/motion package exports carbon--motion JavaScript function with easings. But as far as I know, there isn't a way to also import any specific timing values (like the equivalent of SCSS variable $duration--fast-02) as JavaScript variables from this package.

Justification

When creating JavaScript-based animations, it is helpful to be able to import these variables from Carbon instead of doing workarounds and/or redefining the variables ourselves.

If these values actually do exist in a package right now, please let me know! I just didn't see a way to grab these motion duration values currently. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants