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

153
Views
¿Cuál es la forma correcta de escalar suavemente un elemento a nada y luego volver a su tamaño original?

Así es como lo hago en React:

 const animate_boxes = () => { inner_ref.current.style.transform = "scale(0)"; setTimeout(() => { if (inner_ref && inner_ref.current) { inner_ref.current.style.transform = "scale(1)"; } }, 200); };

Por alguna razón, no es confiable. es posible que setTimeout no siempre se ejecute. Todavía no he descubierto por qué todavía. Pero si hay una forma alternativa de hacerlo, escriba una solución.

Gracias

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

¿Puedo sugerir la biblioteca react-spring?

about 4 years ago · Juan Pablo Isaza Report

0

Use la biblioteca de movimiento del enmarcador con la propiedad de scale pasada como una matriz de valores, por ejemplo:

 import {motion} from 'framer-motion' const Component = () => { return ( <motion.div initial={{scale: 1}} animate={{scale: [0.1, 1]}} > hi </motion.div> ) }

Consulte estos documentos para obtener más ejemplos - Documentos

about 4 years ago · Juan Pablo Isaza Report
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!