Skip to content
This repository has been archived by the owner on Mar 21, 2020. It is now read-only.

peteschaffner/framer-webview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Framer web view module

A simple web view for your prototyping pleasure.

Screenshot

Usage

$ framer myProject &
$ cd myProject
$ npm install --save peteschaffner/framer-webview

index.js:

var Webview = require('framer-webview')

var webview = new Webview({
  url: 'https:google.com/design'
  width: Screen.width,
  height: Screen.height
})

API

Webview#url <string>

Web page you would like to render. Defaults to 'https://google.com/design'

Webview#contentHeight <number>

The height of the web view’s content. This, together with the height, will effect the vertical scroll.

NOTE: To get the appropriate contentHeight for the given url open said url in Chrome, emulate your target device, and run document.body.offsetHeight in the console. The output should be your contentHeight value.