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

237
Views
Mi div animado falla hacia arriba que hacia abajo durante la animación

Hice un div básico con un encabezado y un párrafo dentro y cuando realizo una animación de varios pasos, el cuadro falla hacia arriba y luego hacia abajo. Lo hace parecer muy glitchy y extraño. Puede ver mi error en https://jsfiddle.net/yajuy8qy/ . Código:

 <div class="enlarge"> <h1 class="title">Welcome!</h1> <p>Zach</p> </div> <script> $(document).ready(function() { $(".enlarge").animate({minHeight: '500px'}, "slow"); $(".enlarge").animate({width: '80%'}, "slow"); }); </script> <style> .enlarge { height: 500px; width: 50%; background-color: #2098D1; align-items: center; align-content: center; border-radius: 15px; position: relative; margin: 10px auto; } </style>

¡Gracias!

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Parece que hay un problema con la propiedad de relleno predeterminada. Intente configurar el relleno en el div (incluso 1px aparece soluciona la falla).

 .enlarge{ padding: 1px; }
about 4 years ago · Santiago Trujillo 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!