Take a look at the demo code using jQuery-a JavaScript library, have some fun while learning:
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("#grow").click(function(){
$("#myImg").animate({width: '+=20px'});
});
});
</script>
</head>
<body>
<button id="grow">Zoom In!</button><br>
<img id='myImg' src='https://s-media-cache-ak0.pinimg.com/736x/d7/9e/b8/d79eb82db960906a3da0439ea5be40d5.jpg'>
</body>
</html>
Try it at
JSFiddle[
^]
Adapt and learn.