TSX:
function Content() {
return (
<>
<main id="main">
<img src="/vite.svg" id="logo" />
</main>
</>
);
}
export default Content;
CSS:
:root {
font-family: sans-serif, Arial !important;
}
#main #logo {
animation-name: spin;
}
@keyframes spin {
from {
transform: rotateY(0);
}
to {
transform: rotateY(360);
}
}
I tried nothing and was expecting the react logo spin animation but on the vite image.