shuding / next-view-transitions

Use CSS View Transitions API in Next.js App Router.
https://next-view-transitions.vercel.app
MIT License
1.12k stars 32 forks source link

Add full support for next/link features #6

Closed dav-is closed 2 months ago

dav-is commented 2 months ago

Within link.tsx, a comment says "This is a wrapper around next/link", so I am assuming you would expect it to behave just like next/link.

The onClick function is missing a check for a modified event. The most common example is when Ctrl+Clicking a link, it opens the link in a new tab.

There is a navigate() function used in next/link that handles replace, as, and scroll that I extended to support only the app router, because this lib doesn't support the pages router.

vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
next-view-transitions-example ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 16, 2024 9:56pm