Fix animations on pseudo-elements not pausing when replayer is paused (#776)
This commit is contained in:
@@ -690,7 +690,7 @@ export class Replayer {
|
|||||||
).concat(this.config.insertStyleRules);
|
).concat(this.config.insertStyleRules);
|
||||||
if (this.config.pauseAnimation) {
|
if (this.config.pauseAnimation) {
|
||||||
injectStylesRules.push(
|
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++) {
|
for (let idx = 0; idx < injectStylesRules.length; idx++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user