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

What is Framer? Join the Community
Return to index
Antonio Krämer Fernandez
Posted Jul 16 - Read on Facebook

hey folks, i'm struggling a bit with ordering layers. I want that the scrollable content moves beneath the "Header" layer. but this is not working…

# This imports all the layers for "Prototyp01" into myLayer
myLayer = Framer.Importer.load "imported/Prototyp01"

scrollViewer = new Layer ({
x:0,
y:0,
width:640,
height:1163
backgroundColor: "#fff0"
})

scrollViewer.addSubLayer(myLayer["Content"])
scrollViewer.scroll = true

myLayer["Header"].bringToFront()

4 Comments

Stephen Crowley

You could have a masked layer to crop the content.

Antonio Krämer Fernandez

yay thanks now its working! I was looking for some tutorials that explain how to do these basic things, but couldn't find any. Is there already such a place?

Stephen Crowley

Nice! ...You know, I am not quite sure but I think I could start curating a Sketch-Framer FAQ/Guide or at least start compiling the frequently asked questions specific to Skethc+Framer. As more people start discovering Sketch+FramerJS, it could be helpful to have that "deeper dive" of "How To...".

Stephen Crowley

Antonio Krämer Fernandez - Did you have any issues with your ScrollView cutting off your Feed elements when viewing in framer? I scroll and my elements are cut off where the mask ends.

Read the entire post on Facebook