跳过导航
CSS Tip! ✨ Did you know you can animate CSS Grid tracks?
0:00 / 0:18

CSS Tip! ✨ Did you know you can animate CSS Grid tracks?

jhey ʕ•ᴥ•ʔ

@jh3yy15万 位关注者

在 X 上查看

30,631 次观看

CSS Tip! ✨ Did you know you can animate CSS Grid tracks? 👀 ul:is(:hover,:focus-within) {--active: 1;} ul { grid-template-columns: auto repeat(3, calc(10px + (var(--active) * 100px))); transition: all 0.2s; } Adjust layouts based on interaction! 😎 CodePen.IO link below! 👇

评论

评论来自 X (Twitter) 上的原帖

暂无评论