refactor(404.html): 移除鼠标移动的简单视差效果
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user