fix: parallax values on About photos grid
This commit is contained in:
@@ -40,7 +40,7 @@
|
|||||||
|
|
||||||
$effect(() => {
|
$effect(() => {
|
||||||
// Add parallax to photos grid
|
// Add parallax to photos grid
|
||||||
scroll(({ y }) => photosGridParallax = lerp(-15, 10, y.progress), {
|
scroll(({ y }) => photosGridParallax = lerp(-10, 20, y.progress), {
|
||||||
target: photosGridEl,
|
target: photosGridEl,
|
||||||
offset: ['start end', 'end start']
|
offset: ['start end', 'end start']
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user