Repository navigation
v6.11.0 - JSON Animation Manifest Generator Added
JSON Animation Manifest Generator Added
This release introduces a robust animation manifest generator script for cssanimation.css.
What’s Included
- Tool:
tools/generate-Json.js - Output:
dist/cssanimation.json
Features
- Extracts all
.ca__fx-*class names withanimation-name - Parses full
@keyframesblocks (from,to,0%-100%) - Supports:
animation,animation-name,duration,easing,fill-mode- Inferred
toproperties for*Inanimations (e.g.blurIn) - Inferred
fromproperties for*Outanimations (e.g.fadeOut) - Edge properties like
clip-path,filter,transform
Smart Handling
- Auto-fills missing frames when possible (
blurIngets inferredto) - Correctly parses
animationshorthand using flexible regex logic - Optional support for
animation-metadata.jsonto inject:- Tags
- Categories
- Duration overrides
Output Sample
{
"blurIn": {
"class": "ca__fx-blurIn",
"animation": {
"name": "blurIn",
"duration": "1s",
"timingFunction": "ease-out",
"fillMode": "both",
"iterationCount": "1"
},
"keyframes": {
"from": {
"filter": "blur(20px)",
"opacity": "0"
},
"to": {
"filter": "none",
"opacity": "1"
}
},
"tags": [],
"category": "uncategorized"
}
}