Skip to content

Comments

feat(shared): implement shared element transition for post modal using framer-motion#5535

Open
tsahimatsliah wants to merge 2 commits intomainfrom
fix/shared-element-transition
Open

feat(shared): implement shared element transition for post modal using framer-motion#5535
tsahimatsliah wants to merge 2 commits intomainfrom
fix/shared-element-transition

Conversation

@tsahimatsliah
Copy link
Member

@tsahimatsliah tsahimatsliah commented Feb 21, 2026

Summary

  • Add framer-motion dependency to @dailydotdev/shared package.
  • Map layoutIds between feed cards (ListCard) and the opened modal (BasePostModal and PostContent) for seamless expansion and collapse.
  • Remove old manual modal overlays and old pull-to-close calculations in favor of native Framer Motion layout morphing.
  • Fix scrolling behaviors and layout shifts on open/close.

Test plan

  • Verify that clicking an article card smoothly morphs the card into the modal.
  • Verify that closing the modal (via X or pull-to-close) smoothly morphs the modal back into the original card.
  • Verify that framer-motion does not introduce unintended side effects in other layouts.

Made with Cursor

Preview domain

https://fix-shared-element-transition.preview.app.daily.dev

…g framer-motion

- Add framer-motion dependency
- Map layoutIds between feed cards and modal for seamless expansion
- Remove manual modal overlays and old pull-to-close logic
- Ensure smooth layout morphing on open/close

Co-authored-by: Cursor <cursoragent@cursor.com>
@vercel
Copy link

vercel bot commented Feb 21, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
daily-webapp Error Error Feb 21, 2026 9:26am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
storybook Ignored Ignored Feb 21, 2026 9:26am

Request Review

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant