beyondMore pages

From “CSS Can Now Animate Between Pages” by Coding2GO

CSS Cross-Page Transitions and Shared Image Animation

Pages can now slide and morph like an app, using only CSS.

Open the interactive page →Make a page from any YouTube video

Key points

Details on screen

Will it work in my browser?

Questions to check yourself

Which rule turns on the default crossfade between two HTML pages?

view-transition with navigation auto — The video enables cross-document transitions with the view-transition rule set to navigation auto. 0:13

Why does the navbar stay still after the named page-content transition?

Only the main element gets view-transition-name page-content — Naming main as page-content means only the main content is animated in all three pseudo-elements. 3:10

What must a view-transition-name be on a page?

Unique on the current page — The video says a view transition name has to be unique on the current page, so each card image needs its own name. 4:40

More pages like this

Lessons and exam prep → · All pages from Coding2GO →