{
setIsAnimation(false)
console.log('Completed animating', definition)
}}
- >
+ />
{
onDragStart={(event, info) => console.log(info.point.x, info.point.y)}
onDragEnd={(event, info) => console.log(info.point.x, info.point.y)}
onDirectionLock={(axis) => console.log('axis', axis)}
- dragSnapToOrigin={true}
+ dragSnapToOrigin
// dragConstraints={{ left: 0, right: 300 }}
dragConstraints={constraintsRef}
- // dragElastic={false}
- // dragElastic={0.8}
- // dragPropagation={false}
- >
+ />
{
backgroundColor: 'white',
borderRadius: 60,
}}
- >
+ />
scrollDirection: {scrollDirection}
@@ -575,7 +572,7 @@ const ParallaxVert = () => {
x,
rotate,
}}
- >
+ />
{
borderRadius: '20px',
scaleX,
}}
- >
+ />
{
backgroundColor: '#fff',
borderRadius: 10,
}}
- >
+ />
{
backgroundColor: '#fff',
borderRadius: 10,
}}
- >
+ />