A practical guide to combining ASP.NET Core Razor Pages, HTMX, and the browser View Transitions API to achieve smooth, native-like page transition animations. The approach uses HTMX's hx-boost for performance (skipping CSS/JS re-parsing on navigation) and the transition:true option on hx-swap (introduced in HTMX 1.9.0) to opt into view transitions declaratively. CSS animations with unique view-transition-name values complete the setup. No C# changes are required — only HTML and CSS modifications. A GitHub sample repo is provided.
6 Impressions