All Topics
All Topics
Technology
Technology
AI
AI
Business
Business
Entertainment
Entertainment
News
News
Programming
Programming
Security
Security
Science
Science
Design
Design
Environment
Environment
Finance
Finance
Crypto
Crypto
Politics
Politics
Sports
Sports
Education
Education
Gaming
Gaming
Art
Art
Music
Music
Health
Health
Books
Books
Food
Food
Travel
Travel
Personal
Personal
Bluesky
Twitter

Fixing 3D Cross-Document View Transitions in CSS

By

@the_jonin_

23d ago· 7 min readen

Summary

This article addresses a common frustration with CSS view transitions: 3D cross-document view transitions don't work as expected because browsers flatten the before/after snapshots into 2D planes. Using image elements as a reduced test case, the author explains why this happens and provides an elegant CSS fix to enable proper 3D transitions between pages.

Source

CSS-TricksFixing 3D Cross-Document View Transitions in CSScss-tricks.com

Key quotes

· 3 pulled
If you have played around with view transition a bunch, you may have noticed that 3D transitions between two pages (i.e., cross-document view transitions) don't seem to work.
Image elements are the best example to demonstrate this because, like the snapshots a browser takes of the before-after states in a view transition, images are replaced elements so, in theory, we should be able to use them as a sort of reduced test case for 3D animations.
Sunkanmi tackles this frustration and offers an elegant fix for it.
Snippet from the RSS feed
Why isn't my 3D view transition working?! Sunkanmi tackles this frustration and offers an elegant fix for it.

You might also wanna read

Comments

Sign in to join the conversation.

No comments yet. Be the first.