最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

next.js - MotionFramer - How to properly use scale with layoutId? - Stack Overflow

programmeradmin1浏览0评论

I’m working on a "Hero-style" animation and could use some advice. I have a card on my body that I want to "move up" into a modal, and I’d like to move the card and scale it up at the same time when I click on it.

The issue I’m facing is that the animation looks strange and seems "buggy" — there’s a noticeable cut or jump during the transition, which ruins the smoothness I’m aiming for.

I’d like to know if anyone has an alternative approach to achieve this kind of animation. To clarify, I’d prefer to make the scale animation happen while the card is moving, rather than having the scaling occur afterward.

Any help or tips would be greatly appreciated!

Thanks in advance!

Here is the code I currently have

发布评论

评论列表(0)

  1. 暂无评论