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

506
Views
¿Cómo puedo configurar hover::after/estado activo predeterminado?

Obtuve una animación css para subrayar, pero configurando:

 <button className="btn active">

no parece tener el final de la animación configurado como predeterminado. ¿Alguien puede indicarme qué estoy haciendo mal? Aquí está mi CSS:

 .btn { position: relative; text-transform: uppercase; color: whitesmoke; transition: all 0.5s ease-in; font-size: 1.3rem; cursor: pointer; } .btn:hover { color: white; } .btn:hover::after { transform: scale(1, 1); transition: transform 0.3s ease; } .btn::after { content: ""; position: absolute; width: 100%; height: 0.105rem; left: 0; bottom: 0; background: whitesmoke; transform: scale(0, 1); } .btn:active { transform: scale(1, 1); }
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

 .btn { position: relative; text-transform: uppercase; color: whitesmoke; transition: all 0.5s ease-in; font-size: 1.3rem; cursor: pointer; } .btn:hover { color: white; } /* Expected selector ".btn::after" to come before selector ".btn:hover::after" */ .btn::after { content: ""; position: absolute; width: 100%; height: 0.105rem; left: 0; bottom: 0; background: whitesmoke; transform: scale(0, 1); } /* Expected selector ".btn::after" to come before selector ".btn:hover::after" */ .btn:hover::after { transform: scale(1, 1); transition: transform 0.3s ease; } .btn:active { transform: scale(1, 1); }
 <button class="btn active">Button</button>

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!