Fix animations on pseudo-elements not pausing when replayer is paused (#776)

This commit is contained in:
John Pham
2026-04-01 12:00:00 +08:00
committed by GitHub
parent 6c1cd75354
commit 005c3d90d5

View File

@@ -690,7 +690,7 @@ export class Replayer {
).concat(this.config.insertStyleRules);
if (this.config.pauseAnimation) {
injectStylesRules.push(
'html.rrweb-paused * { animation-play-state: paused !important; }',
'html.rrweb-paused *, html.rrweb-paused *:before, html.rrweb-paused *:after { animation-play-state: paused !important; }',
);
}
for (let idx = 0; idx < injectStylesRules.length; idx++) {