JSFiddle - React, Tailwind, and code Playground

HTML

<div class="icon" style="display:block;width:100px;height:100px;background-color:red"></div>

JavaScript

$(".icon").hover(function() {
            $(this).stop().animate({transform: "rotate(-90deg)", height: "200px"},400);
        },function() {
            $(this).stop().animate({backgroundColor : "black", color: "red"},400);
        });