Under the hood · 24 November 2026

Asking ChatGPT or Claude for Shopify page transitions: a prompt, and what to check

A prompt that gets an AI assistant to write a safe page transition for a Shopify theme, where to paste the result, and the five checks it cannot run for you.

AI assistants are good at exactly this kind of code: short, standard, well documented. The risk is not that the code is wrong, it is that nobody tests it on your shop. Here is a prompt that asks for the right thing, and the checks to run after.

The prompt

I run a Shopify store on the [theme name] theme. Write CSS for a page
transition between pages using cross-document View Transitions
(@view-transition with navigation: auto). Requirements:
- wrap it in @media (prefers-reduced-motion: no-preference)
- old page fades out in 0.2s, new page fades and rises 12px in 0.35s
- do not animate the cart drawer or anything inside it
- explain exactly which file to paste it into and where

Give it your real theme name: it changes which stylesheet to use (assets/base.css on Dawn).

Where the code goes

In your admin: Online Store, Themes, then on your theme “…”, Duplicate. On the duplicate: Edit code, open the stylesheet the assistant named, paste at the very end, Save. Preview the duplicate; only publish it once the checks pass.

The five checks

1. Safari. Open the preview on an iPhone. Cross-document transitions need Safari 18.2 or newer; older versions simply load pages as before, which is fine, but make sure nothing breaks. 2. Cart and checkout. Add to cart, open the cart drawer, go to checkout. All of it should behave exactly as before. 3. Reduced motion. Turn on Reduce Motion in your phone’s accessibility settings and click around: there should be no animation at all. 4. A slow page. Throttle the network in your browser’s developer tools and click a link: the move should not leave a half-faded page on screen. 5. Theme updates. Note what you pasted and where. When you update the theme, your edit does not come with it; you paste it again.

Where the AI version stops

CSS gives you a fade or a slide of the whole page, timed by the browser. It cannot cover the screen in your colours while a slow page loads, cannot build a move from your logo, and plays nothing in Firefox. That is the line between a snippet and an app; more on where CSS stops.

If you would rather skip the code: Segue does this as an app embed, free, with fourteen designed moves and nothing pasted into your theme. You can see it on your own shop before installing anything: type your address into Try it on your store and click around your real store with Segue on.