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

185
Views
¿Cómo escalar un elemento secundario rotado para que se ajuste a su padre?

Tengo este elemento con las siguientes dimensiones width: 90px height: 108px

Imagen 1

Después de rotar su tamaño "se vuelve más grande"

Imagen 2

¿Cómo puedo escalarlo para que se ajuste a su contenedor con cualquier ángulo de rotación?

Imagen 3

Código:

 figure { grid-area: image; position: relative; transform: rotate(-12deg); width: min(50vw, 90px); height: min(60vw, 108px); img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 1.2rem; border: 6px solid var(--white); } }

PD: estoy usando JSS, por lo que cualquier solución de JavaScript también es bienvenida.

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