Skip to content

Commit

Permalink
Allowing interpolation of hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgperry committed May 13, 2024
1 parent 9dc6e6a commit 4f8ed16
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ export function canAnimate(
const originKeyframe = keyframes[0]
if (originKeyframe === null) return false

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

const targetKeyframe = keyframes[keyframes.length - 1]
Expand Down

0 comments on commit 4f8ed16

Please sign in to comment.