Skip to content

Commit

Permalink
Update 077.3D卡片鼠标跟随旋转动效.html
Browse files Browse the repository at this point in the history
  • Loading branch information
linyisonger authored Sep 30, 2024
1 parent d75d0b0 commit bea9724
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 077.3D卡片鼠标跟随旋转动效.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ <h1>3D卡片鼠标跟随旋转动效</h1>
});
// 复位
cardContentDom.addEventListener("mouseleave", (e) => {
window.requestAnimationFrame(function () {
requestAnimationFrame(function () {
cardContentDom.style.transform = `rotateX(${initOffsetRotateX}deg) rotateY(${initOffsetRotateY}deg)`;
});
});
Expand Down

0 comments on commit bea9724

Please sign in to comment.