Reduce movement
This commit is contained in:
parent
54068f8cdb
commit
152a7d58e1
1 changed files with 2 additions and 2 deletions
|
|
@ -92,8 +92,8 @@
|
||||||
// Logo slides in the same direction as the tilt
|
// Logo slides in the same direction as the tilt
|
||||||
// When tilting down (mouse at bottom), logo slides down
|
// When tilting down (mouse at bottom), logo slides down
|
||||||
// When tilting up (mouse at top), logo slides up
|
// When tilting up (mouse at top), logo slides up
|
||||||
const logoX = -rotateY * 3 // Same direction as tilt
|
const logoX = -rotateY * 1.25 // Same direction as tilt
|
||||||
const logoY = rotateX * 3 // Same direction as tilt
|
const logoY = rotateX * 1.25 // Same direction as tilt
|
||||||
|
|
||||||
logoTransform = `translate(${logoX}px, ${logoY}px)`
|
logoTransform = `translate(${logoX}px, ${logoY}px)`
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue