1.0.2 • Published 9 years ago
@f/prefix-style v1.0.2
prefix-style
Prefix style objects based on browser version
Installation
$ npm install @f/prefix-styleUsage
var prefixStyle = require('@f/prefix-style')
var prefixer = prefixStyle('chrome', 34)
prefixStyle({transform: 'scale(2, 0.5)'}) // -> {
// transform: 'scale(2, 0.5)',
// webkitTransform:
// }API
prefixStyle(browser, version)
browser- Name of the browserversion- Version number of the browser you want to prefix for
Returns: A partially applied function that accepts a style object: prefix(style) -> style and returns the same object, modified to have the proper prefixes set for the browser specified by browser and version.
License
MIT