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

Generate CSS Variables #2

Open
timoxley opened this issue Nov 26, 2014 · 0 comments
Open

Generate CSS Variables #2

timoxley opened this issue Nov 26, 2014 · 0 comments

Comments

@timoxley
Copy link

It would be cool if this this had a mode which didn't replace magic strings, rather it set all of the easings up as standard CSS variables so they could be used like any other variable:

.item {
  transition: transform 0.5s var(--ease-in-cubic);
}
  css = rework(css)
  .use(vars())
  .use(easing({variables: true}))

i.e. standards > custom (convenient!) magic.

Alternatively, if the package simply exported the easings it would be possible to wire this up externally.

@timoxley timoxley changed the title variables Generate CSS Variables Nov 26, 2014
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