Free Online CSS Skeleton Loader Generator
Build skeleton placeholders for text lines of varying widths, a heading, an avatar circle, an image block and a full card. Set the base and highlight colour, the corner radius, the shimmer direction and speed, or use a plain pulse instead, with a reduced motion block written every time.
On the left is a card skeleton, on the right the pieces on their own. Both are real elements running the generated CSS, on a white surface so the colours read the way they will on a light page.
Enjoying WizTools123? Help keep our server infrastructure 100% free and open for everyone.
How to Use CSS Skeleton Loader Generator
Step by step, start to finish.
The base is the resting colour of the placeholder and the highlight is the band that sweeps across it. Keep them close together: a strong contrast between the two turns a quiet loading state into a flashing one.
A shimmer sweeps a gradient across the block left to right, right to left, diagonally or top to bottom. A pulse fades between the two colours, which is calmer and paints a flat colour rather than a gradient. The cycle runs from 400 to 4000ms for both.
Line height and gap should match the real text they stand in for, and the title height should match the real heading. The avatar is a circle, the image block uses a 16 / 9, 3 / 2, 4 / 3 or 1 / 1 aspect ratio, and the card holds one to six body lines.
The output holds the base rule, the line, title, avatar and image pieces, the card layout, the keyframes and a reduced motion block. The HTML it expects is written as a comment at the top, including the aria-hidden that keeps it out of the way.
Key Features
What this tool does, and what it does not do.
Text lines of varied widths, a title, an avatar circle, an image block and a card.
A moving gradient in four directions, or a calmer colour pulse.
Included in every output: the shimmer stops, and the pulse slows by 2, 3 or 4 times.
A real card skeleton, on a white surface, running the real CSS.
The whole set with the expected HTML as a comment at the top.
Nothing is sent anywhere. The page works with the network off.
About CSS Skeleton Loader Generator
A skeleton screen is a promise about the layout. It says the content is coming and it will be this shape, and it works because the eye has somewhere to rest while the network does its job. The promise holds when the placeholder and the real content agree about size: the data slides into the space already reserved for it, and the person keeps their place in whatever they were reading.
This page generates the pieces a skeleton is made from, ready to arrange to fit your own component. There is a base class that carries the colour and the animation, and then a line, a title, an avatar and an image block, plus a small card layout showing how they stack. The preview puts a real card skeleton on a white surface next to the individual pieces, so you can judge the colours the way they will actually appear.
What can you set?
- Colours: a base and a highlight, with a corner radius up to 20px.
- Animation: shimmer in four directions or a pulse, on a cycle from 400 to 4000ms.
- Text: line height from 6 to 24px, a gap from 2 to 24px and a title height from 10 to 40px. Lines vary in width (100%, 92%, 78% and so on) so they read like real text.
- Media: an avatar from 20 to 80px and an image block at 16 / 9, 3 / 2, 4 / 3 or 1 / 1.
- Card: one to six body lines.
How are the animations built?
The shimmer is a three stop linear gradient, base to highlight to base, whose background position is animated across the block. The pulse animates the background colour between the two shades. Both repaint the block on every frame, which is light work for a card or two; on a long list the pulse is the calmer and simpler option.
The reduced motion block is written every time. A skeleton keeps its whole meaning when it stands still, so under prefers-reduced-motion the shimmer stops outright and the gradient is removed. A pulse is slowed instead, by the factor you choose: two, three or four times the normal cycle.
What markup does it expect?
The comment at the top of the output shows a role="status" wrapper holding a visually hidden "Loading" message, with the card itself marked aria-hidden="true". Screen reader users hear that the page is loading, and the empty placeholder blocks stay out of their way.
Frequently Asked Questions
Common questions about this tool.
More Developer Tools
Other tools from the same hub, free and in your browser.
Feedback
No feedback on this tool yet. Yours would be the first.