Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upCurrent support for keyframes #275
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
rtfeldman
Sep 4, 2017
Owner
@kuon Yep! http://package.elm-lang.org/packages/rtfeldman/elm-css/11.0.0/Css#selector should do the trick.
(Sorry I took so long responding to this.
|
@kuon Yep! http://package.elm-lang.org/packages/rtfeldman/elm-css/11.0.0/Css#selector should do the trick. (Sorry I took so long responding to this. |
rtfeldman
closed this
Sep 4, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
jeffutter
Sep 7, 2017
I'm wondering if there are any examples to do this. So far I have:
, selector "@keyframes sk-bouncedelay"
[ descendants
[ selector "0%, 80%, 100%"
[ property "transform" "scale(0)" ]
, selector "40%"
[ property "transform" "scale(1.0)" ]
]
]
However, that yields:
@keyframes sk-bouncedelay 0%, 80%, 100% {
transform: scale(0);
}
@keyframes sk-bouncedelay 40% {
transform: scale(1.0);
}
I am hoping to get:
@keyframes sk-bouncedelay {
0%, 80%, 100% {
transform: scale(0);
} 40% {
transform: scale(1.0);
}
}
Any suggestions?
jeffutter
commented
Sep 7, 2017
|
I'm wondering if there are any examples to do this. So far I have:
However, that yields:
I am hoping to get:
Any suggestions? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Wrent
commented
Feb 15, 2018
|
@jeffutter have you managed to solve this? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
jeffutter
commented
Feb 15, 2018
|
@Wrent nope sorry. I haven't done much with elm lately. |
rtfeldman
referenced this issue
Jun 10, 2018
Open
Animation Keyframes API Design [feedback welcome!] #431
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
ryan-senn
Jul 6, 2018
I managed to hack spinning animations like this if someone else is desperate enough in the meantime:
selector "@keyframes spin"
[ property "0% { transform" "rotate(0deg); } 100% { transform: rotate(360deg); }" ]
Essentially with property, using the string up to the first : (colon) as the key and the rest as the value.
Comes out like this:
@keyframes spin {
0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); };
}
ryan-senn
commented
Jul 6, 2018
|
I managed to hack spinning animations like this if someone else is desperate enough in the meantime:
Essentially with property, using the string up to the first : (colon) as the key and the rest as the value. Comes out like this:
|
kuon commentedJun 8, 2017
As I understand, elm-css do not provide native support for
keyframes.But is it possible to generate
keyframescss with something likeproperty?