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

213
Views
How to change js-image-zoom's scaling ratio?

The project where I worked at use js-image-zoom to zoom in images when the mouse hovers over them.

But the scaling ratio can't be controlled by the scale argument, it only adjusts the width of the len.

  const zoomOptions = {
    scale: 1.25, // has no effects on the scale
    fillContainer: true,
    offset: { vertical: 0,horizontal: 10},
    zoomPosition:"original",
  };
  new ImageZoom(document.getElementsByClassName('gallery')[0], zoomOptions);
about 4 years ago · Juan Pablo Isaza
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!