Ask HN: Is there a declarative animation language?

10 points by elviejo ↗ HN
I'm looking for a programming language for graphics. Something like processing.org but more declarative.

for example if I had a circle with center in 0,0 and then I exited to have center in 100,100 then the animation to transform from one to the other should happen automatically.

something that looks like:

(circle 0,0) `animate` (circle 100,100).

or even better animate automatically between scenes, where a scene is a set of other drawings. so animate from scene to the next would be like:

scene1 `animate` scene2

does something like that exist?

6 comments

[ 4.6 ms ] story [ 29.8 ms ] thread
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
                    }
                }
        }
    }