註冊並分享邀請連結,可獲得影片播放與邀請獎勵。

Gabriel
@gabriell_lab
designer ex. @Porsche & @Audi
加入 March 2025
323 正在關注    8.7K 粉絲
Design Engineering Tip Make hover interactions respond to where the cursor actually comes from. Instead of revealing content with the same animation every time, detect the cursor entry direction and move the image + content accordingly. It makes a simple card feel much more spatial and responsive. const direction = getDirection(event, ref.current); const variants = { top: { y: 20 }, bottom: { y: -20 }, left: { x: 20 }, right: { x: -20 }, };
顯示更多
0
11
388
17
轉發到社區