JavaScript Usuń klasę z przejściem

//JS
const element = document.querySelector(".myClass");
element.classList.remove("myClass")

//CSS
.default {
    background-color: blue;
    transition: background-color 1s ease-in-out;
}
.myClass {
    background-color: red !important;
}
//HTML
<div class="default myClass"></div>
Q_Q