JSFiddle - React, Tailwind, and code Playground

by ruisoftware

HTML

<div id="rotate30">
    <div id="zoom">
        test
    </div>
</div>
<button>animate</button>

CSS

#rotate30 {
    border: 1px black dotted;
    width: 200px;
    height: 100px;
}

#zoom{
    background-color: red;
    width: 50px;
    height: 50px;
    zoom: 1px;
    z-index: 1;
}

JavaScript

$("button").click(function() {
    $("#zoom").animate({'zoom': 2}, 1000);
});