motion-dom
Version:
17 lines (15 loc) • 455 B
JavaScript
/**
* A list of values that can be hardware-accelerated.
*
* Colors aren't included: WAAPI mixes them in sRGB, but JS animations
* (and the sampler that estimates a WAAPI value on interrupt) mix them
* in linear color space, so interrupting one would visibly jump.
*/
const acceleratedValues = new Set([
"opacity",
"clipPath",
"filter",
"transform",
]);
export { acceleratedValues };
//# sourceMappingURL=accelerated-values.mjs.map