Introduction
Parse css shorthand property.
Installation
npm install css-shorthand-parser
Usage
const shorthandParser = require('css-shorthand-parser')
import shorthandParser from 'css-shorthand-parser'
<script src="../dist/css-shorthand-parser.min.js"></script>
shorthandParser('flex', '2')
shorthandParser('animation', '3s 2 slidein')
shorthandParser('animation', '3s ease-in 1s 2 reverse both paused slidein')
shorthandParser('background', 'no-repeat center/80% url("../img/image.png")')
shorthandParser('background', 'scroll border-box center/50% auto no-repeat red')
Supported properties
-
margin
-
padding
-
border
-
list-style
-
flex
-
animation
-
backgroud
-
font
-
transition