Motion: [BUG] transformTemplate prop stops transforms from being applied

Created on 20 Aug 2019  路  1Comment  路  Source: framer/motion

Describe the bug

Hello, thanks for the great library!
I'm having some trouble with the transformTemplate prop. As far as I can tell it isn't working at all and breaks the transitions being applied. I feel like there might be some user error on my part here but I'm really struggling to figure it out. Any help is much appreciated.

To Reproduce
I've created a codesandbox forking one of the framer-motion examples and applying a simple transformTemplate.

https://codesandbox.io/s/framer-motion-transformtemplate-s0ifs

Expected behavior
A clear and concise description of what you expected to happen.

Desktop (please complete the following information):

  • OS: macOS 10.14.6
  • Browser: Chrome, FF, Safari
  • Version: Can't find any version that works, but haven't checked every version.

Thanks again!

bug

Most helpful comment

After reaching out to the twitterverse it seems like the values to transfromTemplate already had units attached which is why everything broke. Can probably close this.

>All comments

After reaching out to the twitterverse it seems like the values to transfromTemplate already had units attached which is why everything broke. Can probably close this.

Was this page helpful?
0 / 5 - 0 ratings