JSFiddle - React, Tailwind, and code Playground

by secretgspot

HTML

<script src="http://designshack.net/tutorialexamples/jQueryZoom/jquery.zoomooz.js"></script>
<script src="http://designshack.net/tutorialexamples/jQueryZoom/jquery.animtrans.js"></script>
<script src="http://designshack.net/tutorialexamples/jQueryZoom/purecssmatrix.js"></script>
<script src="http://designshack.net/tutorialexamples/jQueryZoom/sylvester.js"></script>
<div id="container">

    <div id="outer" class="zoom">
        <div id="inner" class="zoom">
            <p><a href="#">Click here to zoom</a></p>
        </div>
    </div>
    
</div>

CSS

* {
    margin: 0;
    padding: 0;
}

/*Back to Design Shack*/
#back {
    height: 25px;
    background-color: #383131;
    color: white;
    text-align: center;
    line-height: 25px;
    font-family: helvetica, arial, sans-serif;
    font-size: 12px;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
}

#back a {
    color: white;
    text-decoration: none;
}

#back a:hover {
    color: #b9e1f7;
}

#back:hover {
    height: 50px;
    line-height: 50px;
    background-color: #000;
}

/*Project Styles*/

#container {
    width: 800px;
    height: 500px;
    margin: 0 auto;
}

#outer {
    width: 400px;
    height: 200px;
    background: #aaa;
    margin: 50px auto;
    padding: 70px;
}

#inner {
    width: 400px;
    height: 200px;
    background: #eee;
    margin: 0 auto;
    position: absolute;
}

#inner p {
    text-align: center;
    font: 25px/200px Helvetica, sans-serif;
}

#inner p a {
    color: #000;
    text-decoration: none;
}

#inner p a:hover {
    text-decoration: underline;
}

JavaScript

$(".zoom").click(function(evt) {
    evt.stopPropagation();
    $(this).zoomTo();
});
$(window).click(function(evt) {
    evt.stopPropagation();
    $("body").zoomTo();
});
$("body").zoomTo();