Skip to content

Instantly share code, notes, and snippets.

@toxin20
Created February 16, 2016 10:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toxin20/f314fe4bcdc241d112ab to your computer and use it in GitHub Desktop.
Save toxin20/f314fe4bcdc241d112ab to your computer and use it in GitHub Desktop.
sketch = Framer.Importer.load("imported/screens@2x")
# custom device
Framer.DeviceView.Devices["g3"] =
"deviceType": "phone"
"screenWidth": 1440
"screenHeight": 2560
"deviceImage": "https://www.dropbox.com/s/2oktp0ba812xo90/g3.png?dl=1"
"deviceImageWidth": 1555
"deviceImageHeight": 3121
# Set custom device
Framer.Device.deviceType = "g3"
#Framer.Device.orientation = 0
# Wrap the content layer within a ScrollComponent
scroll = ScrollComponent.wrap(sketch.Content)
scroll.scrollHorizontal = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment