CSS Tip! ✨ Did you know you can animate CSS Grid tracks?
jhey ʕ•ᴥ•ʔ
Visit on X@jh3yy147K followers
30,631 views
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! 👇
Comments
Comments from the original post on X (Twitter)
No comments yet
