refactor(404.html): 移除鼠标移动的简单视差效果

This commit is contained in:
2025-09-11 23:10:49 +08:00
parent 2659ce2cdc
commit 9ac3d34a2a

View File

@@ -190,14 +190,6 @@
// Set language on page load
window.addEventListener("DOMContentLoaded", setLanguage);
// Simple parallax effect
document.addEventListener("mousemove", function (e) {
const container = document.querySelector(".container");
const xAxis = (window.innerWidth / 2 - e.pageX) / 25;
const yAxis = (window.innerHeight / 2 - e.pageY) / 25;
container.style.transform = `rotateY(${xAxis}deg) rotateX(${yAxis}deg)`;
});
</script>
</body>
</html>