Hello friends,
I have been trying to play a video depending on the scroll that the user makes. I haven't found anything as a tutorial video. I have been trying some things that I had seen in this Forum.
My question is that someone already achieved this type of animation on React? Most of the post in this forum is about Vanilla Javascript
If someone can help me I really appreciated
I don't have code about gsap, I have been trying things but doesn't work and I finish in the same place, in this code:
import textVideo from "../assets/text.mp4";
import styles from "../styles/Video.module.css";
const Video = () => {
return (
<div>
<video className={styles.textVideo} src={textVideo} muted autoPlay loop />
</div>
);
};
export default Video;