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

174
Views
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 answers
Answer question

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 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!