Plus methods of BaseLibrary:
This will take your CSS file (as a string) and fills the library with all necessary information
** rcs.keyframesLibrary.fillLibrary(code)**
Parameters:
- code
<String>
Example:
const myCssFileWithKeyframes = '@keyframes move { from {} to {} }';
rcs.keyframesLibrary.fillLibrary(myCssFileWithKeyframes);
This will get a specific minified selector
rcs.keyframesLibrary.get(selector[, options])
Parameters:
- selector
<String>
- options
<Object>
(optional):- origKeyframe
<Boolean>
: If true the input is the original keyframe so it will return the minified keyframe. Default:true
- origKeyframe
Example:
const rcs = require('rcs-core');
rcs.keyframesLibrary.set('move'); // sets to 'a'
rcs.keyframesLibrary.get('move'); // a
rcs.keyframesLibrary.get('a', { origKeyframe: false }); // move