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

What is Framer? Join the Community
Return to index
Fran Pérez
Posted Jun 25 - Read on Facebook

Question: Is it possible to use the function placeBehind() with for example a new layer (foo = new Layer) and place it behind a layer generated from Sketch/Photoshop? It doesn't seem to work…

foo.placeBehind(sketchdocumentLayers.whatever)

It works between new layers though.

3 Comments

Koen Bok

To move a layer behind another layer, they need to have the same superLayer.

Koen Bok

So you can do something like:

layerA = new Layer()

layerA.superLayer = sketchdocumentLayers.whatever.superLayer
layerA.placeBehind(sketchdocumentLayers.whatever)

Fran Pérez

Worked perfect, thanks :)

Read the entire post on Facebook