There was an error while loading. Please reload this page.
1 parent 496d34c commit 788f766Copy full SHA for 788f766
packages/codehike/src/utils/token-transitions.tsx
@@ -241,6 +241,7 @@ function toSnapshotElement(el: HTMLElement): SnapshotElement {
241
y += p.offsetTop
242
p = p.offsetParent
243
}
244
+ el?.getAnimations().forEach((a) => a.cancel())
245
const style = window.getComputedStyle(el)
246
const color = style.color
247
const content = el.textContent
0 commit comments