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

What is Framer? Join the Community
Return to index
Ben Rodenhäuser
Posted Jan 15 - Read on Facebook

Yesterday, I tried using variables inside spring curves, writing stuff like "spring(theTension,theFriction,0)", where theTension and theFriction had been set to numerical values before. But that didn't seem to work. Is it correct that I cannot use variables in this way, or am I going about this the wrong way? Thanks in advance.

3 Comments

Marc Krenn

You need to do this:
' curve: "spring (#{tension}, #{friction}, 0)" '

If you need some further information on this, please google "coffeescript string interpolation" (sry, I'm currently on my phone)

Ben Rodenhäuser

Ah, I see. It needs to be a string. Thank you!

Ben Rodenhäuser

Alternatively, I suppose I could write: >> theTension = "100" << and later on: >> spring(theTension, ...) <<.

Read the entire post on Facebook