Spaces:
Running
Running
Update script.js
Browse files
script.js
CHANGED
|
@@ -57,7 +57,6 @@ if ('ontouchstart' in window) {
|
|
| 57 |
const yAxis = (window.innerHeight / 2 - e.pageY) / 8;
|
| 58 |
product.style.transform = `perspective(3000px) rotateY(${xAxis}deg) rotateX(${yAxis}deg)`;
|
| 59 |
});
|
| 60 |
-
// Дополнительная анимация при наведении на продукт
|
| 61 |
product.addEventListener('mouseenter', () => {
|
| 62 |
product.style.filter = 'brightness(1.5)';
|
| 63 |
});
|
|
|
|
| 57 |
const yAxis = (window.innerHeight / 2 - e.pageY) / 8;
|
| 58 |
product.style.transform = `perspective(3000px) rotateY(${xAxis}deg) rotateX(${yAxis}deg)`;
|
| 59 |
});
|
|
|
|
| 60 |
product.addEventListener('mouseenter', () => {
|
| 61 |
product.style.filter = 'brightness(1.5)';
|
| 62 |
});
|