Skip to main content
Bluvy Tube
Press Esc to exit fullscreen
Volume m
/
i
Theater mode t
f
/
Make UI elements move along a curved path with pure CSS. No JavaScript is needed for this animation. Here is how offset-path brings motion to your menus. #CSS #WebDev #Frontend 1/6

Keyboard shortcuts

Space K
Play / pause
← →
Back / forward 5 s
J L
Back / forward 10 s
0–9
Jump to 0%–90% of the video
Home End
Start / end
, .
Previous / next frame (while paused)
< >
Slower / faster
↑ ↓
Volume
M
Mute / unmute
C
Captions
F
Fullscreen
I
Picture-in-picture
T
Theater mode
?
Show this help

Make UI elements move along a curved path with pure CSS. No JavaScript is needed for this animation. Here is how offset-path brings motion to your menus. #CSS #WebDev #Frontend 1/6

0 views Published on 03/09/2026 08:00 0:12
#webdev #css #frontend
Make UI elements move along a curved path with pure CSS. No JavaScript is needed for this animation. Here is how offset-path brings motion to your menus. #CSS #WebDev #Frontend 1/6
1 comment
?
1. The :has() selector

The parent menu detects which link is hovered.
It creates a CSS variable named distance.
Each link defines its own target value.

2/6
2. CSS variables

The variable shares the position with all dots.
When idle, each dot stays at its default place.
On hover, the parent updates the shared value.

3/6
View original post on Bluesky
Link copied to clipboard

Sign in

Time to take a break

You've been watching videos for 30 minutes straight: give yourself 5 minutes away from the screen. Stand up, stretch, grab a glass of water… Your videos will be right here when you're back.