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

What is Framer? Join the Community
Return to index
Richard Sellies
Posted May 01 - Read on Facebook

I almost finally found a way to resize the imported image to scale on any device you view it on. Just not sure why my Yellow layer is not showing the full height of the screen. Does anyone know why?
(Super happy I have found a fix for the image resize :)

http://share.framerjs.com/iabrfyj87ntr/

# Import file "TheCollectiveExperince-v1a3"
psd = Framer.Importer.load("imported/[email protected]")

psd.mainPageContent.center()

psd.mainPageContent.props =
scale: Screen.width / psd.mainPageContent.width

layerA = new Layer
backgroundColor: "rgba(255,227,0,1)"
opacity: 0.44
width: screen.width
height: screen.height

1 Comments

Filip Skrzesinski

psd.mainPageContent.props =
scale: Screen.width / psd.mainPageContent.width

psd.mainPageContent.center()

layerA = new Layer
backgroundColor: "rgba(255,227,0,1)"
opacity: 0.44
width: psd.mainPageContent.width
height: psd.mainPageContent.height
x: 0
y: 0

layerA.parent = psd.mainPageContent

Read the entire post on Facebook