News for hackers. Stuff that matters.
Re:Ask HN: Is there a declarative animation language? by bartvk on Wednesday September 09, 2020 @03:20AM (#24418234)
SwiftUI has features like that

    struct AnimatedCircle: View {
        @State private var radius: CGFloat = 0
        var body: some View {
            Circle()
                .frame(width: radius, height: radius)
                .onAppear {
                    withAnimation {
                        self.radius = 100
                    }
                }
        }
    }

There are no comments on this comment yet.