Languages
[Edit]
EN

JavaScript - create zoom-able image element

9 points
Created by:
Maison-Humphries
821

In this article, we would like to show how to create simple zoom-able image element using JavaScript.

The solution presented in the article:

  • scales image on mouse wheel and on touch screen events,
  • allows to move when image is scaled,
  • uses position and size styles to move and resize image element.
Zoom-able image element using JavaScript (on mouse wheel / on touch screen).
Zoom-able image element using JavaScript (on mouse wheel / on touch screen).

Practical example:

 

Alternative titles

  1. JavaScript - zoom image element on mouse wheel
  2. JavaScript - zoom image element on touch screen
  3. JavaScript - scale image element on mouse wheel
  4. JavaScript - scale image element on touch screen
  5. JavaScript - create scale-able image element
1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join