Closed user-aiko closed 4 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
syntax-ui | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | May 12, 2024 9:43am |
@ITs-AIKO afaik Framer Motion animations are powered by JS and don't directly impact DOM performance in the same way that traditional CSS animations or transitions might do.
Am I missing out on something here?
so instead of changing Margin, we should simply do transform-x
?
so instead of changing Margin, we should simply do
transform-x
?
Yes! 'x' because we are using framer motion.
but i didn't get what the change is about in this PR then
but i didn't get what the change is about in this PR then
Used the layout property the right way. Please refer to framer motion docs for more information.
The issue is that styling of this toggle is not consistent with the one in production, See this image:
whereas the toggle in your PR:
i actually liked the less gap in this PR tbh, but @epoll31 made this button so need to ask him if he is ok with this change
I prefer the uniform gap: where the gap in the side is the same as the gap on the top and bottom.
It the prod version, the gap is the same on all sides.
Can we modify the change to make this gap uniform? or was there a reason for the chance?
Someone is attempting to deploy a commit to the SyntaxUI Team on Vercel.
A member of the Team first needs to authorize it.
The Framer Motion Layout has been implemented correctly, based on my knowledge.
The current usage:
Please note that animating x from 0 to 100% is more performant and reliable than manipulating the DOM. However, I updated the code based on @Ansub 's suggestion.
File modified: