Description coming soon.
https://alecrios.github.io/image-zoom-js/
- Lightweight
- No dependencies
- Performant
- Animates only
transformandopacity - Utilizes CSS transitions
- Animates only
- Customizable
- Very minimal CSS
- Easy to change backdrop color, animation speed, etc
This project is still under development and not production-ready. It is written in ES2015, so it needs to be compiled with something like Babel for better browser support.
- Include
image-zoom.css.
<link href="css/image-zoom.css" rel="stylesheet">- Include
image-zoom.js.
<script src="js/image-zoom.js"></script>- Add the
data-zoom-imageattribute to an<img>.
<img src="img/fruit.jpg" data-zoom-image>