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

https://github.com/doodlewind/easyscale

add responsive support for fixed width elements
https://github.com/doodlewind/easyscale

Last synced: about 1 year ago
JSON representation

add responsive support for fixed width elements

Awesome Lists containing this project

README

          

# easyScale
Add responsive support for fixed width elements. [View example](http://ewind.us/platform/doc/easy-scale.html)

## Install
``` html

```

## Usage

### HTML
``` html




```

### CSS
``` css
#foo, .bar, #baz {
margin: 10px auto 10px auto;
height: 200px;
width: 800px;
background-color: #56CBF9;
}
```

### JS
``` js
$.fn.easyScale([
{ el: "#foo", minBound: [0, 0], maxBound: [1300, 500] },
{ el: ".bar", minBound: [0, 0], maxBound: [1000, 500] },
{ el: "#baz", minBound: [600, 400], maxBound: [1000, 500] }
]);
```

## Options
* `el`: required, jQuery selector `string`
* `minBound`: required, `[numberX, numberY]` thereshold to stop zooming
* `maxBound`: required, `[numberX, numberY]` thereshold to start zooming

## License
MIT