cssobj-plugin-flexbox
cssobj plugin for generate right flexbox CSS, auto vendor prefixer for flexbox in browser, input one line, give you right flexbox!
The lib using autoprefixer as support tool, generate both flexbox 2009 spec and flexbox 2012 spec result.
Currently hook below css props:
- display
- flex-direction
- justify-content
- align-items
- order
- flex-grow
- flex-shrink
- flex-basis
- flex
- align-self
For the transformed CSS, please look up the test result.
Install
- npm
npm install cssobj-plugin-flexbox
- bower
bower install cssobj-plugin-flexbox
Usage
var flexbox =var
result css:
Option
option.define [object]
Redefine any css property, as value function that return an object, to replace the original property.
Example:
var
result css:
Also, please take a look at cssobj-plugin-replace