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

239
Views
Image next/js y efecto de opacidad del viento de cola

Quiero cambiar la etiqueta html a nex/js Image, pero el efecto de opacidad al pasar el mouse ya no funciona.

Código inicial:

 <div className="absolute bg-cover bg-no-repeat h-full w-full group-hover:opacity-0" style={{ height: mediaHeight, backgroundImage: `linear-gradient(rgba(15, 41, 55, 0.65), rgba(15, 41, 55, 0.65))`, }} /> <img src={getAbsUrl(imageUrl)} alt={title} className="w-full object-cover" style={{ height: mediaHeight }} />

con siguiente/js

 <div className="absolute bg-cover bg-no-repeat h-full w-full group-hover:opacity-0" style={{ height: mediaHeight, backgroundImage: `linear-gradient(rgba(15, 41, 55, 0.65), rgba(15, 41, 55, 0.65))`, }} /> <Image src={getAbsUrl(imageUrl)} alt={title} className="w-full object-cover bg-opacity-25" layout="fill" />

Con Imagen, las imágenes siempre están iluminadas, no solo al pasar el mouse por encima.

ingrese la descripción de la imagen aquí

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

0

RESUELTO: he usado zIndex de tailwind en el div

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!