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
Animar componente en la etiqueta 'detalles'

HTML:

 .main-summary:before { content : "+"; font-size : 2em; padding : 0 0.5em; display : inline-block; transition : .5s; color : grey; transform : rotate(0deg); } summary:after { padding : 0px .5em; text-align : right; float : right; display : inline-block; content : "∨"; font-size : .7em; transition : .5s; width : 90%; font-weight : 700; }
 <details> <summary class="main-summary"> <p>Main summary</p> </summary> <details> <summary> <p>Text in summary</p> </summary> <p>123</p> </details> </details>
¿Cómo puedo hacer una animación para la etiqueta principal <details> para que la imagen del signo + 1 se voltee y se convierta en el ícono de cierre X 2 imagen , y el ∨ al final de <details> se volteó y se convirtió en una imagen de flecha hacia arriba 3? , pero esto es solo para el elemento abierto y no para todos los que están en la etiqueta abierta.

1 imagen: https://i.stack.imgur.com/5x5cD.png
2 imagen: https://i.stack.imgur.com/oP9ic.png
3 imagen: https://i.stack.imgur.com/AMMA4.png

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