This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Christian Dorian
Posted Jan 22 - Read on Facebook

Does anyone have experience converting spring animations into production iOS code? Example — curve: "spring(300,24,0)"

Thanks All!

6 Comments

Jonas Treub

We are planning to start some research on this matter to make converting spring curves to native animation libraries easier. We have no information yet but I can recommend the Pop framework since it supports spring curve animations like Framer does.
https://github.com/facebook/pop

Christian Dorian

Thanks Jonas Treub!

Marc Krenn

I'd say it's de-facto impossible to convert between rk4-springs to Apple's .... whatever that is. You could try to do some approximations but I'm pretty certain you won't ever be able to 'convert' it in that sense.

Here's an interesting article on this topic:
https://medium.com/@flyosity/your-spring-animations-are-bad-and-it-s-probably-apple-s-fault-784932e51733#.dquudpwew

Scott Simpson

Not sure if this helps — but I found this very easy to use: https://github.com/MengTo/Spring

Nathan Manousos

We published an open source Swift implementation of RK4 here: https://github.com/flinto/spring

Read the entire post on Facebook