postcss-random
PostCSS plugin to generate random numbers based on random seeds using
random()
function.
Note: It's best practice to require the plugin right before postcss-calc.
Installation
$ npm install postcss-random
Examples
Input
/** NOTE: - CSS units can be added right after function call (e.g. 'px') - Syntax: random(min, max, {options}) */ ));}
Output
Options
Note: All options can also be defined inline.
var postcssRandom = ; var postcssProcessors =
randomSeed (Integer)
sets initial seed
round (Boolean)
if true, returns an integer
noSeed (Boolean)
if true, the returned value will be seed-independent and recalculated with each compilation
floatingPoint (Integer)
sets the number of digits after decimal point
Inline-Options
Input
Output
Input (noSeed : true)
)%);}
Output