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

178
Views
¿Cómo agregar valor de eje múltiple en la unidad css en el movimiento del enmarcador?

Estoy usando el movimiento del marco en reacción y necesito que responda en diferentes posiciones animadas.

 const welcomeBallVariants = { visible: { x: [0, 0, -100, -50, 100, 50, -75], y: [0, 500, 300, 500, 300, 500, 347], rotate: 360, transition: { duration: 1, rotate: { duration: 1, repeat: 3, type: "tween", ease: "linear", }, delay: 1.5, }, }, };

aquí está mi código de componente

 <motion.img src={WelcomePageBall} alt="WelcomePageBall" variants={welcomeBallVariants} initial="hidden" animate="visible" />

este es el código de movimiento. Solo quería agregar valor de eje con unidades CSS en vh y vw, pero no funcionó. Solo quiero que la animación responda en cualquier ventana, por lo que cualquier tipo de sugerencia puede ayudar.

Quiero agregar el siguiente valor a mi eje.

 x:["0vw", "100vw"]
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!