1

I have a scrollable element horizontal, I want to start the animation even they are hidden on x-axis, I want to detect my element if they visible on Y-Axis only I am using frame motion, I tried put big negative or positive value on margin but not worked

 <motion.div
 variants={variant}
 ref={ref}
 initial="hidden"
 whileInView="visible"
 viewport={{ once: true, margin: "100px" }}
 transition={{ duration, delay }}
 {...props}
>
 {children}
</motion.div>
asked Mar 24, 2025 at 9:05

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.