Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/orkon/viewport-changer

Widget for changing iframe to emulate various devices
https://github.com/orkon/viewport-changer

Last synced: 17 days ago
JSON representation

Widget for changing iframe to emulate various devices

Awesome Lists containing this project

README

        

# Viewport Changer

A simple drop-in script that resizes the specified iframe on the page to emulate desktop/mobile/tablet devices. It's useful for demos for component authors. Adding the view changer will allow users to see how your components behave on different devices.

## Usage

Include via script tag:

```html

```

or install via JSPM:

Then add the following HTML to your page:

```html






```

## TODO

- unregister event listeners
- tests
- test cross-platform