Skip to content

A Framer.js module that makes desktop prototyping easy by allowing you to pan the view.

License

Notifications You must be signed in to change notification settings

petrkrulis/PanView-Framer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PanView-Framer

A Framer.js module that makes desktop prototyping easy by allowing you to pan the view. This is super useful when viewing your prototype at 100% zoom and can't move around to reveal anything else then the center of your (large) desktop prototype

Demo

Add it in your Framer Studio project

  • Download the project from github.
  • Copy PanView.coffee into the project's modules/ folder.
  • Import it in Framer Studio by writing: {PanView} = require 'PanView'.
  • Create an instance of PanView: panView = new PanView'.
  • Add layers to your view: layer.parent = panView.

How to use it

  • Press and hold space to enable panning by dragging
  • Press alt + space to reset view position

Basic usage

{PanView} = require 'PanView'

panView = new PanView

layer = new Layer
	image: "images/google.png"
	width: 1440
	height: 900
	parent: panView

All options

{PanView} = require 'PanView'

panView = new PanView
	width: 1440
	height: 900
	devicePixelRatio: 2 #All the children will be twice as large
	backgroundColor: 'f36'

layer = new Layer
	image: "images/google.png"
	width: 2880
	height: 1800
	parent: panView

Default options

width: 1440
height: 900
devicePixelRatio: 1
backgroundColor: 'fff'

Usage Example

Here you can find a nice example.

About

A Framer.js module that makes desktop prototyping easy by allowing you to pan the view.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published