Releases: tomickigrzegorz/zooom.js
Releases · tomickigrzegorz/zooom.js
v1.1.3
v1.1.2
v1.1.1
Added
- generating a separate file for IE browser, rollup.config - typescript target [es6, es5]
Changed
- simplification of the 'overlay' styling
overlay: {
color: '#fff',
opacity: 80,
},
on
// overlay layer color and opacity, rgba, hsla, ...
overlay: "rgba(255, 255, 255, 0.9)",
Build
- adding method and props in 'terser' mangle, adding an undeline
_zooomInit = () => {...}
terserOptions: {
mangle: {
properties: {
regex: /^_/,
},
},
},
v1.1.0
Added
- a new parameter
data-zooom-big
. With its help, we can open a larger version of the photo - example-large-photo
This solution is needed to optimize the website. We only display a thumbnail, only by clicking it downloads the photo from thedata-zooom-big
parameter and zooms in.
<img class="img-zoom" loading="lazy" width="576" height="384" data-zooom-big="large-image.jpg" src="image-thumbnail.jpg" />
v1.0.15
Changed
- style refactoring, reducing the size of the library
v1.0.14
Changed
- update example showing how to change cursor when use callback function
onResize
v1.0.13
Added
- new callback function
onResize
Changed
- callback function, name change from
onCleared
toonClose
andonLoaded
toonOpen
v1.0.12
v1.0.11
- New example - leading color
- Refactoring
v1.0.10
- Create a separate photo with styles for each click,
- Fixed problem when photo is in overflow element
- Replaced node-sass to sass
- Change of additional styles
- Remove interface ImageParameters