I am trying to zoom in to portion of an image by changing the div background image property. I am not sure if this is the proper way but so far it works! the only problem is passing the Multiple Properties through .css(). the properties working when I call them separately but not not together! Can you please let me know why this code is not working?
$(document).ready(function () {
$(".zoom").click(function () {
$('.gal').css({
background-size: "200% 200%",
background-position: "center"
});
});
});
Is there any better idea to create a Google Map style image zoom in? Thansk