JSFiddle - React, Tailwind, and code Playground

by unknown601

HTML

<div id="container">
    <img src="http://upload.wikimedia.org/wikipedia/commons/thumb/a/aa/Logo_Google_2013_Official.svg/750px-Logo_Google_2013_Official.svg.png">
</div>

CSS

img {
    max-width:100%;
    max-height:100%;
}
#container {
    width:200px;
    height:200px;
}

JavaScript

$('#container').click(function () {
    $(this).animate({
        'width': '400px',
            'height': '400px',
            'left': '90px',
            'top': '90px'
    }, 200);
    $(this).animate({
        'width': '200px',
            'height': '200px',
            'left': '90px',
            'top': '90px'
    }, 200);

});