Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save PavelLaptev/29fef568f8c55938cd9d64aeb62d8e93 to your computer and use it in GitHub Desktop.
Save PavelLaptev/29fef568f8c55938cd9d64aeb62d8e93 to your computer and use it in GitHub Desktop.
bg = new Layer backgroundColor: "#2d383e"
phoneScreen = new Layer
width: 750
height: 1334
clip: true
backgroundColor: "black"
(window.onresize = ->
phoneScreen.center()
bg.size = Screen.size
phoneScreen.scale = Screen.height / phoneScreen.height
)()
Framer.Defaults.Layer.parent = phoneScreen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment