MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / keyframe

Function keyframe

packages/core/css/lib/parse/index.ts:267–284  ·  view source on GitHub ↗

* Parse keyframe.

()

Source from the content-addressed store, hash-verified

265 */
266
267 function keyframe() {
268 var m;
269 var vals = [];
270 var pos = position();
271
272 while ((m = match(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/))) {
273 vals.push(m[1]);
274 match(/^,\s*/);
275 }
276
277 if (!vals.length) return;
278
279 return pos({
280 type: 'keyframe',
281 values: vals,
282 declarations: declarations(),
283 });
284 }
285
286 /**
287 * Parse keyframes.

Callers 1

atkeyframesFunction · 0.85

Calls 4

declarationsFunction · 0.85
positionFunction · 0.70
matchFunction · 0.70
pushMethod · 0.45

Tested by

no test coverage detected