Yes, now I am preparing such solution by hiding some part by CSS and if must be JS. Idea is to have this sight without any button.
This is what I've prepared but there is some problem with adding transform parameters. Console log shows on this line "image.css is not a function". Maybe somebody has some advice?
This is what I've prepared but there is some problem with adding transform parameters. Console log shows on this line "image.css is not a function". Maybe somebody has some advice?
Code:
// Camera preset
$(function(){
function preset_image(){
box = $('.rolety_w0');
image = box[0].children[0];
box.attr("width","264");
box.attr("height","512");
image.css({'transform': 'scale(1.5) translate(-100px -100px)'});
}
// On load execution
$('.rolety_w0').load(function() {
preset_image();
});
// Check for changes on value of item with rolety_w0
$(".rolety_w0").bind("DOMSubtreeModified",function(){
preset_image();
});
});