In attempting to add a material design ripple animation to a button I took a pure css implementation here and used it.
But now we're migrating to Styletron. How do I recreate this
.ripple-class {
/* props */
}
.ripple-class:after {
/* props */
}
.ripple-class:active:after {
/* props */
}
in styletron? I've tried this
injectStyles(styletron, {
// ripple-class props
':after': {
// :after props
},
':active:after': {
// more props
}
});
And
injectStyles(styletron, {
// ripple-class props
':after': {
// :after props
},
':active': {
':after': {
// more props
}
}
});
The button does not animate. If I just put the actual css in a style tag it works fine.