Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/steamerjs/steamer-responsive
responsive h5 solution
https://github.com/steamerjs/steamer-responsive
Last synced: about 1 month ago
JSON representation
responsive h5 solution
- Host: GitHub
- URL: https://github.com/steamerjs/steamer-responsive
- Owner: steamerjs
- Created: 2016-08-10T11:05:53.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-12-22T13:41:37.000Z (about 8 years ago)
- Last Synced: 2024-11-01T14:37:28.237Z (about 2 months ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## steamer-responsive
Responsive h5 solution### Usage
```
var Responsive = require("steamer-responsive");
Responsive.init();var rem = responsive.px2rem("150px");
var px = responsive.rem2px("1rem");```
### Options
* baseW
- base width, default to 375px, ie iphone6 width
* baseFontSize
- base font size, default to 75px
* maxW
- max width, default to 0. When it is set to non-zero, it means it will stops scale up if width reaches this limit### Changelog
* v0.1.1 finish basic features and add less px2rem function
* v0.2.0 add more less functions