-
Notifications
You must be signed in to change notification settings - Fork 197
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
support @keyframes {...} (for css animations) #227
base: master
Are you sure you want to change the base?
Conversation
else | ||
let | ||
props = | ||
Preprocess.toPropertyPairs mixins |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is kind of brutal: converting a Mixin
to properties without warnings.
tests/Animations.elm
Outdated
\() -> | ||
stylesheet | ||
[ keyframes "foo" | ||
[ ( 0, [ backgroundColor red ] ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alternative suggestion :
keyframes "foo"
[ from [ backgroundColor red ]
, progress 33.3 [ backgroundColor blue ]
, to [ backgroundColor yellow ]
]
It's kind of working but now I'd like to understand what you mean about warnings and how you imagine I should deal with them. The hart of the problem is here I think : https://github.com/nomalab/elm-css/blob/master/src/Css/Preprocess/Resolve.elm#L156-L181 where we "resolve" the keyframes. I imagine that I should do a better job at converting |
Can someone please give me some feedbacks on this, so that I can complete the work? |
Any update on this? Full animation support in elm css would be very good. I can help too. |
It seems like a related issue was created #313 |
Ongoing work, I'm not entirely sure I'm doing this right. See comments.