https://kotlinlang.org logo
#compose-web
Title
# compose-web
a

Arjan van Wieringen

10/06/2023, 3:09 PM
Am I correct that in compose-html I can't use animations, like
animate*AsState
? Is there an alternative? I can use Transition API or CSS, but I don't see a clear reason why automated state should require Skiko. I see that there are Dp, Size, Rect 'animatables', which require compose-ui. But it is a bit of a bummer this automatically excluded html as a target for the animations. For instance, I want to animate some SVG elements, and these are typically positioned within the
viewBox
with normal
x
and
y
parameters. No CSS positioning. EDIT: I am dumb. It can of course be done with the transition api. https://stackoverflow.com/questions/52769582/using-css-transitions-to-animate-the-position-of-svg-elements
😄 1
👍 1
a

andylamax

10/08/2023, 4:20 AM
haahahaha you are not dumb. You've just learned more
3 Views