Create a Direction Aware Hover Effect Using CSS :has() Selector

VideoZoran Jambor

A practical guide on how you can build a pure-CSS direction-aware hover effect.

A practical guide on how you can build a pure-CSS direction-aware hover effect for your navigation menu bar using :has() pseudo-class.

Chapters

  • 00:00 A note on :has() pseudo-class
  • 00:20 HTML & CSS setup for the navigation element
  • 01:03 How to create an animated background slide-up hover effect
  • 04:47 How to create a direction-aware background slide effect using only CSS
  • 09:18 A note on :has() support and @supports at-rule

Demo

Links

CSS Stickers

CSS Stickers

A set of beautiful, cute, and funny CSS stickers to showcase your love for CSS.

Get Your Set Today »
CSS Weekly YouTube Channel

CSS Weekly YouTube Channel

Weekly hands-on tutorials, tips, tools, news, and more — everything related to CSS and front-end development, created by Zoran Jambor.

Subscribe Today »