clamp transform in growablebanner
This commit is contained in:
@@ -115,7 +115,11 @@ function GrowableBannerInner({
|
|||||||
Extrapolation.CLAMP,
|
Extrapolation.CLAMP,
|
||||||
),
|
),
|
||||||
transform: [
|
transform: [
|
||||||
{translateY: interpolate(scrollYValue, [-150, 0], [-75, 0])},
|
{
|
||||||
|
translateY: interpolate(scrollYValue, [-150, 0], [-75, 0], {
|
||||||
|
extrapolateRight: Extrapolation.CLAMP,
|
||||||
|
}),
|
||||||
|
},
|
||||||
{rotate: '90deg'},
|
{rotate: '90deg'},
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user