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

183
Visualizações
Croppie plugin crops the image incorrectly when i use modal window

[https://codepen.io/kurtzalexo/pen/jOYwQNq](Codepen.io) I use cropie and tingle.js. Without a modal window everything works fine. This is what happens, when i crop image from the edge

Tried: https://github.com/Foliotek/Croppie/issues/258, https://github.com/Foliotek/Croppie/issues/764, https://github.com/Foliotek/Croppie/issues/247

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

I changed these styles from tingle and everything start working correctly.

.tingle-modal--visible .tingle-modal-box {
  animation: scale .2s cubic-bezier(.68, -.55, .265, 1.55) forwards;
}

@keyframes scale {
  0% {
    opacity: 0;
    transform: scale(.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

To:

.tingle-modal--visible .tingle-modal-box {
    animation: scal .2s cubic-bezier(.68, -.55, .265, 1.55) none;
}

@keyframes scal {
  0% {
      top: -100px;
    opacity: 0;
  }
  100% {
    opacity: 1;
      top: 0;
  }
}

It looks like croppy reads the size of the container before applying the transform animation.

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