Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

270
Views
use gsap scrollTrigger en reaccionar

Estoy tratando de implicar algunas animaciones en una imagen mientras me desplazo, la imagen crecerá mientras se desplaza hacia abajo y volverá a la normalidad cuando se desplace hacia arriba. La referencia: codepen . Este es mi código de reacción:

 <ArticleWrapper ref={ref}> <img id='grow' className='image' src={Img} alt='Image' /> </ArticleWrapper>

Intenté implementar esto pero no funcionó cuando me desplacé:

 const ref = useRef(null); useEffect(() => { const element = ref.current; scrollTrigger: { trigger: "#grow", scrub: 1.5, start: "top center", end: "+=400", ease: "power1.out" }, { duration: 1, scale: 1 } ); }, []);

Alguna idea de cómo hacerlo ?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!