We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 274f719 commit 01c1663Copy full SHA for 01c1663
1 file changed
src/ScreenCapture.js
@@ -362,13 +362,17 @@ const extractFinalCSSState = (element) => {
362
363
// Extract only the keys (CSS properties) from the final keyframe
364
Object.keys(finalKeyframe).forEach((property) => {
365
- if (property !== 'offset') {
+ if (property !== "offset") {
366
// Store the computed style for each animated property
367
finalCSSState[property] = getComputedStyle(element)[property];
368
}
369
});
370
371
372
+ if (Object.keys(finalCSSState).length === 0) {
373
+ return null;
374
+ }
375
+
376
return JSON.stringify(finalCSSState);
377
378
0 commit comments