Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Preloader w/ JS - Kevin Powell - Community
KP-C
Kevin Powell - Community
•
3y ago
•
2 replies
Matt
Preloader w/ JS
Hello
,
I
'm trying to create a preload transition for each time a page is loaded
. Here
's my code
:
https://codepen.io/Matt-CopOffMatt/pen/NWJKmbK
However
, when adding the
.hidden
.hidden
class
, it doesn
't seem to transition as I expected
(fade to 0
)
. I thought by adding an element and having transition with css
, it would fade out
. Does anyone know what I
'm doing wrong
?
Also
, is this the proper way to create a
'preloader
'
?
Thank you
!
Kevin Powell - Community
Join
A friendly place for developers to meet other devs, ask questions, get help, and just have a good time 🙂.
36,263
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Carousel w/ JS
KP-C
Kevin Powell - Community / front-end
3y ago
how to create a "preloader"
KP-C
Kevin Powell - Community / front-end
4y ago
Animate text after preloader loads
KP-C
Kevin Powell - Community / front-end
4y ago
Product Carousel w/ GSAP & JS
KP-C
Kevin Powell - Community / front-end
3y ago