跳过导航
Design Engineering Tip
0:00 / 0:10

Design Engineering Tip

Gabriel

@gabriell_lab1.3万 位关注者

在 X 上查看

12,010 次观看

Design Engineering Tip Your tooltip doesn’t always end up where you placed it? When it reaches the viewport edge, the browser automatically chooses a fallback position. Anchored Container Queries let your CSS detect that chosen position, so your tooltip can animate from the correct direction. @ container anchored(fallback: flip-block) { .tooltip { animation-name: slide-from-top; } }

评论

评论来自 X (Twitter) 上的原帖

暂无评论