Skip to content

Commit

Permalink
feat(meta-css): add/update framework specs/templates
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Mar 15, 2024
1 parent eb09f16 commit 119f385
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 19 deletions.
3 changes: 1 addition & 2 deletions packages/meta-css/specs/_info.mcss.json
Expand Up @@ -21,6 +21,5 @@
"noanim": {
"prefers-reduced-motion": true
}
},
"specs": []
}
}
47 changes: 32 additions & 15 deletions packages/meta-css/specs/anim.mcss.json
Expand Up @@ -3,19 +3,13 @@
["@keyframes", "fadein", { "opacity": 0 }, { "opacity": 1 }],
["@keyframes", "fadeout", { "opacity": 1 }, { "opacity": 0 }],
["@keyframes", "spin", { "rotate": 0 }, { "rotate": "1turn" }],
["@keyframes", "shrink2", { "height": "2rem" }, { "height": "0rem" }],
["@keyframes", "shrink4", { "height": "4rem" }, { "height": "0rem" }],
["@keyframes", "shrink8", { "height": "8rem" }, { "height": "0rem" }],
["@keyframes", "shrink16", { "height": "16rem" }, { "height": "0rem" }]
[
"@keyframes",
"shrink",
{ "height": "var(--shrink-size)" },
{ "height": 0 }
]
],
"vars": {
"in": [""],
"out": [""],
"2": [""],
"4": [""],
"8": [""],
"16": [""]
},
"specs": [
{
"user": "animations / transitions",
Expand Down Expand Up @@ -44,12 +38,11 @@
},
{
"user": "animations / transitions",
"name": "shrink<vid>-<k>",
"name": "shrink<k>",
"key": "i+1",
"props": { "animation": "shrink <v> ease-out forwards" },
"values": [0.25, 0.5, 1],
"unit": "second",
"vars": ["2", "4", "8", "16"]
"unit": "second"
},
{
"user": "animations / transitions",
Expand All @@ -63,6 +56,30 @@
"props": "animation-delay",
"values": [0, 1, 2, 3, 4, 5],
"unit": "second"
},
{
"user": "animations / transitions",
"name": "anim-<k>",
"props": "animation-play-state",
"values": { "pause": "paused", "play": "running" }
},
{
"user": "animations / transitions",
"name": "anim-<v>",
"props": "animation-timing-function",
"values": ["ease", "ease-in", "ease-out", "ease-in-out", "linear"]
},
{
"user": "animations / transitions",
"name": "anim-steps-<v>",
"props": { "animation-timing-function": "steps(<v>)" },
"values": [2, 3, 4, 5, 6, 8, 10]
},
{
"user": "animations / transitions",
"name": "anim-iter-<v>",
"props": "animation-iteration-count",
"values": [1, 2, 3, 4, 5, "infinite"]
}
]
}
3 changes: 1 addition & 2 deletions packages/meta-css/specs/normalize.mcss.json
Expand Up @@ -154,6 +154,5 @@
[":last-child", { "margin-bottom": 0 }]
],
["@comment", "----- end: CSS normalization -----"]
],
"specs": []
]
}
8 changes: 8 additions & 0 deletions packages/meta-css/specs/positions.mcss.json
Expand Up @@ -23,5 +23,13 @@
"props": "z-index",
"values": [0, 1, 2, 3, 4, 5, 999, 9999]
}
],
"tpls": [
{
"user": "positions",
"name": "<var>",
"props": "<var>",
"vars": ["top", "right", "bottom", "left"]
}
]
}

0 comments on commit 119f385

Please sign in to comment.