正在加载视频...

视频加载失败

The safe triangle is magical! 🤩 It's a method used to expand the target area in context menus. 🔗 Learn about it here:

87,797 次观看 • 2 年前 •via X (Twitter)

10 条评论

Brandon McConnell 的头像
Brandon McConnell2 年前

Shouldn't the triangle continue to shrink with the mouse as the approach the submenu? Maybe with a buffer? If the user pauses and starts to mouse down, I would imagine it should hover the next item down

Ahmad Shadeed 的头像
Ahmad Shadeed2 年前

Correct, it needs more thinking on how to approach the 2nd menu item, but I suppose there is a solution for it; didn't try that yet.

Maarten van Gent 的头像
Maarten van Gent2 年前

Again: love the page you wrote about target sizes. Plus this technique is beautiful!

Ahmad Shadeed 的头像
Ahmad Shadeed2 年前

I appreciate it, thanks a lot 🙏

Quan You 𝕏 的头像
Quan You 𝕏2 年前

Super good article!

Carlos Espada 🦋 carlosespada.bsky.social 的头像
Carlos Espada 🦋 carlosespada.bsky.social2 年前

Your demos to explain CSS are the best 😍 You just play in another league 🔝🎩

Ahmad Shadeed 的头像
Ahmad Shadeed2 年前

Oh, that means a lot, Carlos. Thank you 🤩

Adham Dannaway 的头像
Adham Dannaway2 年前

Definitely a classic 👍

D7460N 的头像
D7460N2 年前

Dude, this is sick! Thanks!

Siddhartha Gudipati 的头像
Siddhartha Gudipati2 年前

One optimization can be have a time-out to remove the safe triangle, so when you are in safer are but outside the item, you can focus on other items. In this case when the focus cursor stays on "Filter by" item, and inside the safe triangle, the filter by is not clickable.

相关视频