- Browser support for browsers that don’t support :has
11
- This isn’t perfect!
Description:
Learn how to create direction-aware effects using modern CSS in this 19-minute tutorial video. Explore techniques for building a directionally-aware hover effect for navigation, similar to YouTube tabs. Discover how to use padding instead of gap, add underlines with pseudo-elements, and create basic animations on hover. Master the art of making lines move to the right and left, clean up code with custom properties, and improve animations for smooth sliding effects. Address browser support issues for those that don't support :has(). While not a perfect solution, gain valuable insights and skills by building this CSS-only directional effect.