Skip to content

Commit

Permalink
Updating tramsform string
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgperry authored and mergatron[bot] committed Jun 7, 2022
1 parent c3e10cf commit c69fb76
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/framer-motion/src/projection/styles/transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,7 @@ export function buildProjectionTransform(
if (rotateY) transform += `rotateY(${rotateY}deg) `
}

return transform === identityProjection ? "none" : transform.trim()
transform = transform.trim()

return transform === identityProjection ? "none" : transform
}

0 comments on commit c69fb76

Please sign in to comment.