Adjust About page photos parallax values

This commit is contained in:
2022-08-21 12:36:35 +02:00
parent 1057c5728a
commit e86a8d4ccd

View File

@@ -111,9 +111,9 @@
*/ */
// First photo // First photo
scroll(animate(photoFirstEl.querySelector('figure'), { scroll(animate(photoFirstEl.querySelector('figure'), {
y: ['-5%', '5%'], y: ['-3%', '6%'],
x: [0, '-3%'], x: [0, '-4%'],
rotate: [-3, 0], rotate: [-1.5, 0],
z: 0, z: 0,
}), { }), {
target: photoFirstEl, target: photoFirstEl,
@@ -121,8 +121,8 @@
}) })
// Portrait photo // Portrait photo
scroll(animate(photoUsEl.querySelector('figure'), { scroll(animate(photoUsEl.querySelector('figure'), {
y: [0, '5%'], y: [0, '-6%'],
x: [0, '-2%'], x: [0, '-3%'],
rotate: [-2, 0], rotate: [-2, 0],
z: 0, z: 0,
}), { }), {