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

111
Views
¿Cómo animar la visibilidad de la malla en reaccionar tres fibras?

Tengo un modelo 3D. Tengo el acceso a la malla. Lo que quiero es animar la visibilidad al hacer clic en el botón. Cuando presiono un botón, la malla debería ser invisible pero no instantánea. Quiero hacerlo de una manera animada. Será invisible en algunos pasos. Como tomar 2 segundos de tiempo para ser invisible con una transición. ¿Cómo puedo hacer eso con reaccionar tres fibra? Soy nuevo en React-tres/fibra.

Código que probé:

 useEffect(() => { if (props.miscOpen === true) { Object.keys(materials).forEach(function (prop) { if (prop.includes("_350")) { gsap.to(materials[prop],{duration:5,opacity:0}) } }); } else { } }, [props.miscOpen]);
about 4 years ago · Santiago Gelvez
1 answers
Answer question

0

¿Está configurando la propiedad .transparent del material en verdadero?
Si la propiedad transparente del material no se establece en verdadero, el material permanecerá completamente opaco y este valor (opacidad) solo afectará su color. mira aquí

about 4 years ago · Santiago Gelvez 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!