Forked from antonkartashov/framer-device-win.coffee
Last active
April 16, 2016 13:35
-
-
Save PavelLaptev/29fef568f8c55938cd9d64aeb62d8e93 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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