1.0.7 • Published 6 years ago

make-responsive v1.0.7

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

Description

  • Create an element that scales uniformly according to the width/height ratio

Install

npm install --save make-responsive@latest

Usage

import makeResponsive from '../node_modules/make-responsive/MakeResponsive.js';

let options = { id:'canvas', width:1920, height:1080, bgcolor:'#ccc' }
makeResponsive(options, true,'both',true, 1);
  • Use the above to import the module and set the id, dimensions, and bgcolor in the 'options' object. The module looks for #YOUR-ELEMENT-ID.

Example starter pug markup file

doctype html
html
  head
    meta(charset='utf-8')
    title
  body
    canvas#canvas
script(src='./js/app.js')
1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.11

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago