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

What is Framer? Join the Community
Return to index
Kasper Andersen
Posted May 27 - Read on Facebook

I'm playing with the slider for the first time, and I have a small question.

I'm using this:

slider.on "change:value", ->
layerB.visible = true

To turn on layerB whenever the slider's value is changing (when i'm dragging the knob).

Is there a way to change layerB back when I stop dragging the knob?

2 Comments

Randi Dumaguet

Hi Kasper, you can use the DragStart and DragEnd events:

slider.knob.on Events.DragStart, ->
layerB.visible = true

slider.knob.on Events.DragEnd, ->
layerB.visible = false

Kasper Andersen

Really? Smaaart. Thanks Randi

Read the entire post on Facebook