Animating CSS Grid Layouts with CSS Anchor Positioning

a month ago by codeinabox to c/css

At CSS Day (back in June), someone asked me how Brave (the browser) might have built their New Tab Page which features some tiles laid out in a grid. While the grid is nothing spectacular, something special happens with it when you resize the viewport: as the available space changes, the grid nicely reorganizes itself in an animated way. The animations are also interruptible, so no View Transitions seem to be at play.So, how did they do it? I’m not sure. But if I were to recreate it, I’d use CSS Anchor Positioning with regular CSS Transitions on top.
Kissaki 1 point a month ago

The demo doesn't seem to work on Firefox.

path: 0 25778618, hotness: undefined, score: 1, children: 0
css
css

@programming.dev

login for more options
840
358
77

go to feed...