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

133
Views
How do I turn off wobbling for sweetalert2?

As soon as a sweetalert2 pops up, the 'X' inside the circle starts wobbling and then stops, which can get annoying. What property do I apply to the JavaScript to turn that off? Why I asked this question again: I asked this question before, but it closed automatically because it said it needed "debugging details", and I don't know what that means. Maybe it might work this time. Resources: https://cdn.jsdelivr.net/npm/sweetalert2@11

Swal.fire({
  icon: 'error',
  title: 'Oops...',
  text: 'Something went wrong!',
})
body {
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif; 
}
<!-- HTML is already in Developer Tools so there is no need for it, and this project can work without it.-->
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>

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

0

You could add a custom class to the icon to remove all animations. Define the class somewhere that's loaded on the page:

.no-animate {
  animation: none;
}

then reference it

Swal.fire({
  icon: 'error',
  title: 'Oops...',
  text: 'Something went wrong!',
  customClass: {
    icon: 'no-animate'
  }
})
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!