I'm using a CSS class on the body to stop transitions running when the document loads. How can I remove it once the Window has loaded with JavaScript (no jQuery)?
HTML:
<body class="preload">
css:
.preload * {
-webkit-transition: none !important;
-moz-transition: none !important;
-ms-transition: none !important;
-o-transition: none !important;
}
This would be the jQuery equivalent *except I'm not using jQuery:
$("window").load(function() {
$("body").removeClass("preload");
});