hardcoded tooltip CSS works until it meets the edge
Tanvir
Visit on X@okaytanvir1.4K followers
54,846 views
hardcoded tooltip CSS works until it meets the edge
bad (gets clipped):
position absolute
left 100%
translateY(-50%)
good: (collision aware)
measure viewport space
choose placement
set top/left
move the arrow
animate from the correct origin
Comments
Comments from the original post on X (Twitter)
No comments yet
