Skip to content

Commit 4f8ed16

Browse files
committed
Allowing interpolation of hidden
1 parent 9dc6e6a commit 4f8ed16

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/framer-motion/src/animation/animators/utils/can-animate.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ export function canAnimate(
2424
const originKeyframe = keyframes[0]
2525
if (originKeyframe === null) return false
2626

27-
console.log(keyframes, name)
27+
/**
28+
* These aren't traditionally animatable but we do support them.
29+
* In future we could look into making this more generic or replacing
30+
* this function with mix() === mixImmediate
31+
*/
2832
if (name === "display" || name === "visibility") return true
2933

3034
const targetKeyframe = keyframes[keyframes.length - 1]

0 commit comments

Comments
 (0)