javascript - Fit Sketch Artboards on Every device in Framer.js -
i have prototype built, imported sketch multiple artboards 640x1136. fit on devices when run in framer. right fits on iphone 5 resolution. need in order prototype work on devices?
i tried making each artboard larger, content centered, , ran framer.device.fullscreen = true
, proportions still off. there way use percentages rather static pixel positions views fit in each device accordingly?
attached screenshot of looks on 6+ (don't fit), , looks on 5 (fits).
i use scale sketch artboards fit framer's device
artboardwidth = 640 framer.device.contentscale = (screen.width / artboardwidth)
Comments
Post a Comment