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

What is Framer? Join the Community
Return to index
Jon Arnold
Posted Mar 14 - Read on Facebook

I try to translate my spring animations to be used with the POP (ios) Framework using this script: https://gist.github.com/koenbok/e9a0f7d763ac28eda880

But the values I get are just wrong:
» tensionFromQcValue: 1339.4194
» qcValueFromTension: -44.75138121546961430
» frictionFromQcValue: 117625
» qcValueFromFriction: -8.3333333333333348

Please help, I would love to have the same spring curves in the iPhone App, not just within the prototype.

6 Comments

Jean Joskin

Try adding parentheses around the formula part. Like

print "tensionFromQcValue: " + ((qcValue - 30.0) * 3.62 + 194.0)

Now you add the text "194" to the textual (string) result of (qcValue - 30.0) * 3.62

Jordan Robert Dobson

Jean: Are you saying like this? http://cl.ly/ZwhB

Jon Arnold

Jean Joskin in your formular, what is qcValue, tension, friction? I thought these were the values for it: "spring(400,32,0)"

Jon Arnold

But this can't be right, qcValueFromFriction would negative…

Jon Arnold

bump!

Koen Bok

Anyone ran into this?

Read the entire post on Facebook