Effortless animations with CSS view transitions
giacomocavalieri.me·3d·
🎬CSS Animation
Preview
Report Post

Designing an appealing web page is always a bit of a challenge for me: I don’t have a lot of web design experience, and the one time a year I set up to do anything that has to look decent I always feel like I’m relearning CSS 101 from scratches.

Surprisingly, this time around I actually had a really good time, and the part I enjoyed the most was dipping my toes into CSS view transitions. I think the final result is really impressive given this is a static web page, with no JavaScript, no tricks, and just a couple of lines of CSS:

Getting started

So how did I do it? To get started we need to add a @view-transition rule to the page’s CSS:

@view-transition {
navigation: auto;
}

This will enable view …

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help