Skip to content

Commit 3a83b1d

Browse files
authored
Merge pull request #464 from code-hike/next
✨ Update website ✨
2 parents 2736785 + 58c487b commit 3a83b1d

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

packages/codehike/changelog.md renamed to packages/codehike/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# codehike
22

3+
## 1.0.2
4+
5+
### Patch Changes
6+
7+
- [#463](https://github.com/code-hike/codehike/pull/463) [`70f8de6`](https://github.com/code-hike/codehike/commit/70f8de66fd142c8692ed4d7e0d8b9293bd4f88bb) Thanks [@pomber](https://github.com/pomber)! - Fix color measurement in token-transitions
8+
39
## 1.0.1
410

511
### Patch Changes

packages/codehike/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codehike",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "Build rich content websites with Markdown and React",
55
"keywords": [
66
"react",

packages/codehike/src/utils/token-transitions.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ function toSnapshotElement(el: HTMLElement): SnapshotElement {
241241
y += p.offsetTop
242242
p = p.offsetParent
243243
}
244+
el?.getAnimations().forEach((a) => a.cancel())
244245
const style = window.getComputedStyle(el)
245246
const color = style.color
246247
const content = el.textContent

0 commit comments

Comments
 (0)