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

94
Views
cómo desplazar svg y enviar mensajes de texto a la vez

Importé una imagen svg y creé un cuadro que contiene un ícono y texto. Entonces, cuando queremos pasar el mouse sobre el cuadro, todos los colores cambian a color amarillo, pero svg no cambia cómo resolver eso si pasamos el mouse sobre el cuadro, entonces el icono del texto también debería cambiar con color amarillo, ahora me sale esto ingrese la descripción de la imagen aquí

 .h:hover{ color:yellow; fill:yellow; }
 <span class='h' style={{border:'2px solid',height:'20px'}}><img src="https://assets.codepen.io/3/kiwi.svg" class="icon" width="15px"/><span>Text</span></span>

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

0

Intente usar filtro en lugar de relleno. https://isotropic.co/tool/hex-color-to-css-filter/ Esto puede ayudar con la conversión de color.

about 4 years ago · Juan Pablo Isaza Report

0

Debería intentar cargar su svg directamente como un svg, y no como una imagen. De esa manera, puede acceder directamente a sus variables svg en su css.

 .h:hover { color:yellow; fill:yellow; } .h:hover svg, .h:hover path { fill: yellow; } /* Depending on your svg, it is possible that you have to set the fill in the path, check your svg */

¡Prueba si esto funciona!

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!