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

What is Framer? Join the Community
Return to index
Julius Gehrig
Posted Jul 24 - Read on Facebook

Hey guys I have this weird problem. I just imported a sketch file into framer and wanted to animate the user avatar to scale up on click using a spring curve. But even though i told framer to use a spring curve it just shows a linear transition instead :/
this is my code:

designLayers["Avatar"].states.add
second: {scale:1.2, opacity:0.5,}

designLayers["Avatar"].animationOptions =
curve: "spring(400,12,0)"

designLayers["Avatar"].on Events.Click, ->
designLayers["Avatar"].states.next()

What have I done wrong?

Thanks in advance! :)

2 Comments

Albin Ekblom

I think you forgot "states" :)
designLayers["Avatar"].animationOptions
designLayers["Avatar"].states.animationOptions

Julius Gehrig

It worked! Thanks Albin!

Read the entire post on Facebook