Premium, Hardware-Accelerated animated skeleton loading states in pure Vanilla CSS.
prefers-color-scheme: dark media queries map instantly to dark environments..skeleton-text, .skeleton-circle, and .skeleton-thumbnail drop into any layout.Include the raw CSS file into your bundle or HTML document:
<link rel="stylesheet" href="path/to/skeleton.css">
Construct a skeleton matching your intended UI layout by applying the .skeleton class.
<div class="skeleton-card">
<!-- Avatar -->
<div class="skeleton skeleton-circle" style="width: 50px; height: 50px;"></div>
<!-- Content Lines -->
<div class="skeleton skeleton-text"></div>
<div class="skeleton skeleton-text"></div>
<div class="skeleton skeleton-text" style="width: 80%;"></div>
</div>
Instead of showing users a blank screen or a spinning wheel (which increases perceived load time and bounce rate), skeleton screens give users immediate visual feedback that content is arriving. This drastically improves the "Cumulative Layout Shift" (CLS) metric in Google Core Web Vitals, leading directly to higher search engine rankings.
If you found this tool useful, check out our other high-performance web utilities and follow Ahmar Hussain for more open-source excellence.
Empowering developers with automated tools and high-performance solutions.
Explore more:
If you find this project useful, please consider giving it a star! â