Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

129
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda