JSFiddle - React, Tailwind, and code Playground

HTML

<p>
<img height="150px" src="http://cdn.designrfix.com/wp-content/uploads/2009/10/web-layout-tutorial-7.jpg"/>
<img height="150px" src="http://speckyboy.com/wp-content/uploads/2010/07/web_layout_psd_27.jpg"/>
<img height="150px" src="http://www.tutorialspalace.com/wp-content/uploads/2011/02/26-web20-vector-layout.jpg"/>
</p>
<p><a href="javascript:enlarge();">Enlarge</a></p>
</body>
<script>
var enlarged = false;

function enlarge(){
    if(!enlarged){
        $("img").animate({height: 40});
        enlarged = true;
    }else{
        $("img").animate({height: 10});
        enlarged = false;
    }
}
</script>