Hello,
I’ve tried to add the animation (onclick) with jQuery.
$(document).ready(function(){
var options = {
duration: 800,
easing: 'linear'
};
$("#fotoPortfolio1").click(function(){
$(this).closest("div").animate({
height: '+=50px',
width: '+=50px',
}, options);
});
});
It works partly. I mean if I click the “zoom” kind of animation works. But:
- How to make it as the initial form again, with next click.
- How to make it to be on the top (it covers other images so far after click).
Maybe there is any other (not too hard way) to create a “zoom” function to create a preview of an image.
Thanks!