Skip to content

Instantly share code, notes, and snippets.

@antonkartashov
Last active October 19, 2016 07:48
Show Gist options
  • Save antonkartashov/ba45489a0350748de77585d8d66d8f60 to your computer and use it in GitHub Desktop.
Save antonkartashov/ba45489a0350748de77585d8d66d8f60 to your computer and use it in GitHub Desktop.
(Device = new Layer
image: "http://resources.framerjs.com/static/DeviceResources/apple-iphone-6s-gold.png"
width: 874, height: 1792
screenObject = Screen
Screen = new Layer
width: 750, height: 1334
backgroundColor: "black"
parent: Device
clip: true
x: Align.center(), y: Align.center()
(window.onresize = ->
Device.scale = screenObject.height / (Device.height + 50)
Device.center())())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment