Hello dear people! I wanted to have some fun with ...
# compose-web
j
Hello dear people! I wanted to have some fun with Compose for web 🙂 I was wondering, if I wanted to have an animation, for example an opacity animation from 0 to 1, should I use CSS or can I use compose animation methods? (like on jetpack compose)
a
only css is performant enough in DOM version of compose
It’s not because of compose itself, but because of how DOM works
j
I thought so, i made it work using simple transitions :)
a
there is also web animation api with keyframes
j
I was struggling a bit with that to be honest, if I have this:
Copy code
Div(attrs = {
    style = {
        animation with keyframes?
    }
}) {
    content...
}
How would I set up this animation with keyframes? 🙂 Do you per chance know?
a
You need to define it in StyleSheet