The flip runs. The opacity fades on cue, the timing feels right, and the old page leans away like a card being pushed across a table instead of turning on its edge. There’s no console error, nothing in the network panel, and reloading changes nothing. If that’s what you’re looking at while building 3D view transitions between two pages, the keyframes are fine and the depth is missing.
Sunkanmi Fafowora fought this exact problem for weeks and wrote the whole thing up on CSS-Tricks, fix included. His post is worth reading in full. This post is the version I keep in my head for theme work, plus two things from the comment thread under his article that adjust the advice a little.
Why 3D view transitions come out flat
To read the failure correctly you need to know what the perspective property does. It doesn’t add depth to the element you declare it on. It opens a 3D space for that element’s children, with one shared vanishing point, which is why the classic card flip works: the property sits on a .scene wrapper and every .card inside it gets depth for free. MDN puts it plainly: the perspective and perspective-origin properties attach to the parent of a child transformed in 3D space, while the perspective() function is part of the transform on the element itself.
View transition snapshots don’t fit that structure. When a cross-document transition starts, the browser captures the old and new pages and drops them into a tree of pseudo-elements, ::view-transition down through ::view-transition-group(root) and ::view-transition-image-pair(root) to the old and new snapshots, and that tree renders in its own layer above the document. It hangs off html in the spec’s diagram, but it isn’t ordinary document flow, and the browser sets its own position and transform values on every group, which is Fafowora’s best guess for why the property never reaches the snapshots. He tried it on html, :root, body, ::view-transition and ::view-transition-group(root). Nothing happened:
/* does nothing to the snapshots */
html {
perspective: 1100px;
}
The property is waiting for a child it can reach, and the snapshots never become one. The function doesn’t wait for anything. It moves with the element wherever the browser puts it, and that’s the whole fix.
The fix, step by step
This is the version I’d paste into a theme stylesheet. It’s the article’s solution with two changes I always make: the keyframe names carry a prefix so plugin CSS can’t collide with them, and the whole effect sits inside a reduced motion media query.
Opt in on every page
Cross-document transitions need the opt-in on both ends of a navigation, so the browser knows the old page and the new page both participate. In WordPress that’s one line in the theme stylesheet, @view-transition { navigation: auto; }. The stylesheet loads on every front-end page, so the whole site is covered at once. Chrome has supported this since version 126 and Safari since 18.2. Firefox hasn’t shipped it in a stable release yet, so this stays an enhancement: unsupported browsers ignore the rule and navigate the old way. Same-origin is the limit anyway, so links off the domain were never going to animate. I’ve written about the wider setup for WordPress sites before if you need the fuller picture.
Move the depth into the transform
Drop the property entirely. perspective() goes inside the transform value, in every keyframe where depth matters, and it travels with the snapshot. Nothing gets inherited, so there’s no parent to lose.
Aim the animations at the root group
The old and new snapshots are addressed as ::view-transition-old(root) and ::view-transition-new(root). Wire the keyframes there and the flip reads as one continuous turn: the old page rotates to -90 degrees over 0.3s while the new one waits, then the new one comes in from 90 degrees. The delay on the second animation is what keeps it from reading as two separate things happening side by side.
@view-transition {
navigation: auto;
}
@media (prefers-reduced-motion: no-preference) {
@keyframes bbioon-flip-out {
0% {
transform: perspective(1100px) rotateY(0deg);
opacity: 1;
}
100% {
transform: perspective(1100px) rotateY(-90deg);
opacity: 0;
}
}
@keyframes bbioon-flip-in {
0% {
transform: perspective(1100px) rotateY(90deg);
opacity: 0;
}
100% {
transform: perspective(1100px) rotateY(0deg);
opacity: 1;
}
}
::view-transition-old(root) {
animation: bbioon-flip-out 0.3s cubic-bezier(0.4, 0, 1, 1) forwards;
transform-origin: center center;
}
::view-transition-new(root) {
animation: bbioon-flip-in 0.3s cubic-bezier(0, 0, 0.6, 1) 0.3s backwards;
transform-origin: center center;
}
}
The perspective value is a matter of taste. 1100px is subtle, which suits a content site. Smaller values exaggerate the depth and drift into demo territory fast.
What I check before shipping it
The media query isn’t decoration. A full-page 3D flip is large movement filling the viewport, exactly the kind of motion that bothers people with vestibular disorders, and one query is enough to avoid the problem. Anyone who asks their system for less motion still gets the plain crossfade. Shipping the flip to everyone and handling complaints later costs more than the query does.
Safari gets a manual test before I promise 3D view transitions to anyone. A comment on the article reports that Safari flattens 3D contexts entirely when it takes snapshots, including scenes built with transform-style: preserve-3d, and points at two open WebKit bugs. I haven’t reproduced that myself, so I treat it as a warning rather than a fact, but I wouldn’t demo the effect in Safari first.
The same thread has a second fix that deserves to be better known. Martin Trapp points out that the old and new snapshots do have a parent you can style, the image pair pseudo, and the property works there:
::view-transition-image-pair(root) {
perspective: 1100px;
}
I still default to the function version, since it keeps the effect inside the keyframes and it’s the path the article demonstrates end to end. But if you already have a shared 3D scene built on the parent pattern, the image pair route is the smaller change.
On the WordPress side there’s little to trip over. The CSS belongs in the theme rather than in a plugin that happens to print styles, and page caching has nothing to do with it, because the transition happens entirely in the browser after both pages load. What usually breaks transitions in practice is older stuff, like a duplicated view-transition-name skipping the animation entirely, and I’ve collected those gotchas before.
On a client site this week I’d ship the opt-in and leave the default crossfade running, because it’s two lines of CSS and it improves every same-origin navigation on the site. I’d hold the 3D flip until I’d watched it in Safari myself, and I’d keep it inside the reduced motion query however subtle the client thinks it is. If you want that kind of motion on your own store or theme and would rather not spend an afternoon in the flat flip loop, that’s the sort of front-end work I take on, so send me a link and I’ll tell you what it needs.