How to change data-zoom-image value

前端 未结 7 2299
旧时难觅i
旧时难觅i 2021-01-04 11:03

I\'m using elevate zoom effects for zooming facility of image, my image tag is:



        
7条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-04 11:31

    After change of data zoom-image attribute, you need to re-initialize with elevateZoom like this:

    $("#zoom_01").data('zoom-image', 'newURL').elevateZoom({
       responsive: true,
       zoomType: "lens", 
       containLensZoom: true
    }); 
    

提交回复
热议问题