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

246
Views
Activar botón desde hover

Quiero mostrar el botón __ cuando pase el mouse sobre la imagen __. Pero en este momento, el botón tiene su propio desplazamiento. Debería hacer esto: cuando se active el desplazamiento desde __image, aumente la opacidad del botón __ para que sea visible.

¡Gracias por cualquier ayuda!

 &__image { display:grid &:hover { transition: 1s; transform: scale(1.05); } } &__button { opacity: 0; display: grid; &:hover { opacity: 1; } }
about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

Ah, encontré una solución.

 &__image { display:grid &:hover { transition: 1s; transform: scale(1.05); .button { opacity: 1; } } } &__button { opacity: 0; display: grid; }

Y luego en js: className="item__music button item__button"

about 4 years ago · Juan Pablo Isaza Report

0

Si este es el diseño de su HTML

 <div class="item"> <div class="__image" style="height:200px;width: 200px;background-color:red;margin:20px"></div> <div class="__button" style="height:200px;width: 200px;background-color:red;margin:20px"></div> </div>

Entonces este estilo debería hacerlo:

 .item { .__image { display: grid; &:hover { cursor: pointer; transition: 1s; transform: scale(1.05); + .__button { opacity: 1; } } } .__button { opacity: 0; display: grid; &:hover { opacity: 1; } } }
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!