JSFiddle - React, Tailwind, and code Playground

HTML

<input type="button" value="Open / Close" id="openclose" />
<img src="http://i.imgur.com/AwECzIx.png?1" alt="" id="garage" />

CSS

img {display: block;}

JavaScript

$(document).ready(function(){
    var closed = false;
    $("#openclose").click(function(){
        if (closed)
            $("#garage").animate({"height": 214, "width": 367}, 1000);
        else
            $("#garage").animate({"height": 10, "width": 367}, 1000);
        closed = !closed;
    });
});