Disable animations during page load
parent
283624706e
commit
210b590544
|
@ -6,8 +6,13 @@
|
|||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>availabili.tf</title>
|
||||
</head>
|
||||
<body>
|
||||
<body class="preload">
|
||||
<div id="app"></div>
|
||||
<script type="module" src="/src/main.ts"></script>
|
||||
</body>
|
||||
</html>
|
||||
<script>
|
||||
window.addEventListener("load", () => {
|
||||
document.body.classList.remove("preload");
|
||||
});
|
||||
</script>
|
||||
|
|
|
@ -90,3 +90,10 @@ body {
|
|||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
body.preload * {
|
||||
-webkit-transition: none !important;
|
||||
-moz-transition: none !important;
|
||||
-ms-transition: none !important;
|
||||
-o-transition: none !important;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue