Skip to content

Commit e767066

Browse files
committed
Inline loading css
1 parent dc5728e commit e767066

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

index.html

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,40 @@
4242
white-space: nowrap;
4343
border: 0;
4444
}
45+
46+
/* Critical loading styles - inline to prevent flash */
47+
#flockeditor {
48+
opacity: 0 !important;
49+
pointer-events: none;
50+
visibility: hidden;
51+
}
52+
53+
body:not(.loading) #flockeditor {
54+
opacity: 1 !important;
55+
pointer-events: auto;
56+
visibility: visible;
57+
transition: opacity 0.3s ease-in;
58+
}
59+
60+
.loading-screen {
61+
position: fixed;
62+
top: 0;
63+
left: 0;
64+
width: 100%;
65+
height: 100%;
66+
background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
67+
display: flex;
68+
justify-content: center;
69+
align-items: center;
70+
z-index: 10000;
71+
opacity: 1;
72+
transition: opacity 0.5s ease-out;
73+
}
74+
75+
.loading-screen.fade-out {
76+
opacity: 0;
77+
pointer-events: none;
78+
}
4579
</style>
4680
</head>
4781

0 commit comments

Comments
 (0)