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

Mastering Linting

Mastering Linting

Get proficient with the best linting tools, Prettier & Stylelint.

Enroll Now »
Baseline Status for Video

Baseline Status for Video

A handy online tool that will let you easily show Baseline Status in your videos.

Try It Now »