Skip to content

Commit f24c97b

Browse files
committed
Adding tests
1 parent a9f3553 commit f24c97b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ Motion adheres to [Semantic Versioning](http://semver.org/).
44

55
Undocumented APIs should be considered internal and may change without warning.
66

7-
## [12.17.0] 2025-06-08
7+
## [12.18.0] 2025-06-12
88

99
### Added
1010

11-
- Support for defining a timeline position relative to the start of the most recently added animation (e.g. `<0.5`, `<-1`)
11+
- Support for defining a timeline position relative to the start of the most recently added animation (e.g. `<+0.5`, `<-1`)
1212

1313
## [12.17.3] 2025-06-12
1414

packages/framer-motion/src/animation/sequence/utils/__tests__/calc-time.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ describe("calcNextTime", () => {
2323

2424
// Relative to previous
2525
expect(calcNextTime(5, "<1", 100, labels)).toBe(101)
26+
expect(calcNextTime(5, "<+1", 100, labels)).toBe(101)
2627
expect(calcNextTime(5, "<-1", 100, labels)).toBe(99)
2728
expect(calcNextTime(5, "<2.5", 100, labels)).toBe(102.5)
29+
expect(calcNextTime(5, "<+2.5", 100, labels)).toBe(102.5)
2830
expect(calcNextTime(5, "<-2.5", 100, labels)).toBe(97.5)
2931
expect(calcNextTime(5, "<-150", 100, labels)).toBe(0)
3032
})

0 commit comments

Comments
 (0)