Change the default zoom from top left to center using jquery / javascript

Fundingcn

New Member
\[code\]$( "#slider" ).slider({ orientation: "vertical", range: "min", min: 100, max: 200, value: 100, slide: function( event, ui ) { $("#popup").css("width", ui.value + "%"); $("#largeText").css("width", ui.value + "%"); $("#largeImg").css("width", ui.value + "%"); }});\[/code\]Currently , I have implemented a slider to handle the zoom process. The logic is when slider move to different place, the width of the image and the div contained it will increase. However, I found out that the start point is at top left for every zoom action. Can I change it to center? Thanks
 
Back
Top