Skip to content

Commit 5dda6e7

Browse files
Merge pull request #2137 from framer/fix/translate-none-keyframes
Fixing unit conversion for translate values
2 parents e2820f8 + 941003a commit 5dda6e7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/framer-motion/src/render/dom/utils/unit-conversion.ts

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ const positionalKeys = new Set([
2121
"bottom",
2222
"x",
2323
"y",
24+
"translateX",
25+
"translateY",
2426
])
2527
const isPositionalKey = (key: string) => positionalKeys.has(key)
2628
const hasPositionalKey = (target: TargetWithKeyframes) => {

0 commit comments

Comments
 (0)