JSFiddle - React, Tailwind, and code Playground

HTML

<div>yay</div>

CSS

div {
    padding: 10px;
    height: 30px;
    background: red;
    font-size: 2em;
    color: #fff;
    -webkit-transition: all 1s ease-in-out;
    -moz-transition: all 1s ease-in-out;
    -o-transition: all 1s ease-in-out;
}

div:hover,
div.hover{
    padding: 20px;
    color: #ccc;
    height: 100px;
    background: blue;
}

JavaScript

//$('div').trigger('mouseenter') //does not work
(function(){
$timeout(function () {
console.log("add class");
$('div').addClass('hover');
//angular.element('#my-hover').trigger('mouseover');
}, 500);
$timeout(function () {
console.log("remove class");
$('div').removeClass('hover');
}, 8000);
})();
 //$('div').addClass('hover') //works but i don't want this