JSFiddle - React, Tailwind, and code Playground
by isherwood
HTML
<img class="pgall" src="http://placekitten.com/200/200" />
CSS
.pgall2 {
height: 107px;
position: fixed;
top: 50%;
right: 50%;
-webkit-transform: scale(3);
-moz-transform: scale(3);
-o-transform: scale(3);
transform: scale(3);
z-index: 10;
-webkit-transition: all 0.5s ease-out;
-moz-transition: all 0.5s ease-out;
-o-transition: all 0.5s ease-out;
transition: all 0.5s ease-out;
}
JavaScript
$('.pgall').click(function () {
$(this).toggleClass('pgall pgall2');
});