admin管理员组文章数量:1022777
I can't find how to change the default zoom level of elevateZoom, any suggestions? This is my code:
$('.img-zoom').elevateZoom({
responsive: true,
zoomWindowWidth:500,
zoomWindowHeight:300,
zoomWindowFadeIn: 500,
zoomWindowFadeOut: 750,
scrollZoom : true
});
I can't find how to change the default zoom level of elevateZoom, any suggestions? This is my code:
$('.img-zoom').elevateZoom({
responsive: true,
zoomWindowWidth:500,
zoomWindowHeight:300,
zoomWindowFadeIn: 500,
zoomWindowFadeOut: 750,
scrollZoom : true
});
Share
Improve this question
asked Apr 18, 2017 at 16:06
BoBBoB
1331 silver badge11 bronze badges
1
- By default elevateZoom sets the zoom to 1, to change it just use the property: zoomLevel: n – BoB Commented Apr 19, 2017 at 9:15
3 Answers
Reset to default 3For some reason the zoomLevel example is hidden on elevateZoom's example page, but if you use dev tools you can remove the display: none
and find the following info:
Zoom Level
The zoomlevel by default is 1, but this can be overridden
You can do this with thezoomLevel
config option
Zoom Level 2 would make the image twice as small
Zoom Level 0.5 would make the image twice as big
$("#zoom_11").elevateZoom({
zoomLevel: 2
});
for those who don't know why "zoomLevel" is not working. you should also set "scrollZoom" to "true".
$(".img-zoom").elevateZoom({
scrollZoom: true,
zoomLevel: 0.8
});
For those who are still trying to make ElevateZoom work, it won't work, it's dead project. Use this fork instead: https://igorlino.github.io/elevatezoom-plus/index.html
I can't find how to change the default zoom level of elevateZoom, any suggestions? This is my code:
$('.img-zoom').elevateZoom({
responsive: true,
zoomWindowWidth:500,
zoomWindowHeight:300,
zoomWindowFadeIn: 500,
zoomWindowFadeOut: 750,
scrollZoom : true
});
I can't find how to change the default zoom level of elevateZoom, any suggestions? This is my code:
$('.img-zoom').elevateZoom({
responsive: true,
zoomWindowWidth:500,
zoomWindowHeight:300,
zoomWindowFadeIn: 500,
zoomWindowFadeOut: 750,
scrollZoom : true
});
Share
Improve this question
asked Apr 18, 2017 at 16:06
BoBBoB
1331 silver badge11 bronze badges
1
- By default elevateZoom sets the zoom to 1, to change it just use the property: zoomLevel: n – BoB Commented Apr 19, 2017 at 9:15
3 Answers
Reset to default 3For some reason the zoomLevel example is hidden on elevateZoom's example page, but if you use dev tools you can remove the display: none
and find the following info:
Zoom Level
The zoomlevel by default is 1, but this can be overridden
You can do this with thezoomLevel
config option
Zoom Level 2 would make the image twice as small
Zoom Level 0.5 would make the image twice as big
$("#zoom_11").elevateZoom({
zoomLevel: 2
});
for those who don't know why "zoomLevel" is not working. you should also set "scrollZoom" to "true".
$(".img-zoom").elevateZoom({
scrollZoom: true,
zoomLevel: 0.8
});
For those who are still trying to make ElevateZoom work, it won't work, it's dead project. Use this fork instead: https://igorlino.github.io/elevatezoom-plus/index.html
本文标签: javascriptElevateZoom default zoom levelStack Overflow
版权声明:本文标题:javascript - ElevateZoom default zoom level - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745568258a2156580.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论