JSFiddle - React, Tailwind, and code Playground

by mtenschert

HTML

<link rel="stylesheet" href="https://www.alpinresorts.com/assets/css/main.css">
    
<body ng-controller="AlpinMainController" ng-init="test='AR'" alpin-resize class="">

<div>Ich bin ein Div.</div>

</body>

CSS

.async-hide {
  opacity: 0 !important;
  background: white;
}

body {

}

div {
  background-color: red;
  width: ´50%;
  margin: 50%;
  margin-left: 25%;
  margin-right: 25%;
  margin-top: 25%;
  height: 200px;
}

JavaScript

$('body').addClass( "async-hide" );
            
setTimeout(function(){

 $('body').removeClass( "async-hide" );

}, 1000);