Skip to content

Skeleton Product Grid

Pure CSS skeleton loader for a product grid with shimmering placeholder cards, a wave-like sweep and an accessible loading status.

Also known as: loading placeholder, skeleton loading screen, shimmer placeholder cards, product grid loader

Skeleton Product Grid live demo

Open in new tab

Pure CSS code (HTML, CSS)

A skeleton loading state for an online shop's product grid, written in pure CSS with no JavaScript. Eight placeholder cards with an image block, title lines, rating dots, price and cart button are swept by a soft light that travels across the grid like a wave. Show it while product data is being fetched on category pages, search results or "recommended for you" rows.

How it works

The root section.skp-shop carries aria-busy="true" and contains a visually hidden heading and status message, a .skp-toolbar (heading, item count, filter chips and a sort pill) and the ul.skp-grid. Each li.skp-card holds an .skp-media block with a faint inline SVG image icon and an optional .skp-badge, followed by .skp-body with .skp-line bars, the five dots of .skp-rating and an .skp-foot row with .skp-price and the round .skp-button.

The shimmer is a single ::after overlay on every card: a diagonal white gradient that moves from translateX(-100%) to translateX(100%) with the skp-shimmer keyframes. Because the cards are white, the light is only visible where it crosses the grey placeholder shapes, so one animation per card covers all its blocks. The :nth-child(4n + 2), (4n + 3) and (4n + 4) rules add 0.12 s steps of animation-delay, which makes the sweep run from the left column to the right. The toolbar uses a gentler opacity pulse (skp-pulse). A few :nth-child rules vary badge visibility and line widths so the cards do not look copy-pasted.

Customization

  • --skp-block and --skp-block-dark on .skp-shop: the two grey tones of the placeholders; match them to your real card colors.
  • --skp-shine: color and strength of the moving highlight, e.g. rgba(255, 255, 255, 0.4) for a subtler effect.
  • --skp-speed: duration of one shimmer and pulse cycle.
  • --skp-media-ratio: aspect ratio of the image block, e.g. 1 / 1 for square product photos or 4 / 5 for fashion shots.
  • --skp-radius: corner radius of the cards and image blocks.
  • grid-template-columns in .skp-grid: two columns on phones, three from 640px and four from 960px; change the counts to match your real product grid.
  • Duplicate or remove li.skp-card items to match the page size of your API.

Use cases

  • Category pages: placeholder cards hold the layout while product data loads
  • Search results: a shimmering grid appears instead of a blank page during the fetch
  • Recommended for you rows: eight cards with image, price and button blocks stand in until content arrives
  • Online shops: an accessible loading status tells screen reader users that products are coming

Accessibility

All placeholder shapes are inside elements with aria-hidden="true", so screen readers skip them. Instead, the section is marked aria-busy="true" and a visually hidden role="status" paragraph announces "Loading products". When your data arrives, replace the grid with the real cards, set aria-busy="false" and update or remove the status text. With prefers-reduced-motion: reduce the shimmer overlay is hidden and the pulse stops, leaving a calm static placeholder.

Usage notes

The skeleton should mirror the layout of your real product card, so the page does not jump when content loads. Keep the same grid classes and gaps for both states.

Skeleton Product Grid at a glance

Framework
Pure CSS
Code
HTML, CSS
JavaScript
Not needed, CSS only
Dependencies
None
Layout
Responsive, works on mobile
Category
Skeleton Loaders
License
Free for personal and commercial use

Questions about this template

Can I use the Skeleton Product Grid code for free?

Yes. You can copy or download the code and use it in personal and commercial projects, including client work. No sign-up is needed. Reselling it as part of a component library or template collection is not allowed; see the license.

How do I add it to my website?

There is nothing to install. Paste the HTML where the component should appear and add the CSS to your stylesheet. Download HTML gives you a complete page with everything already linked.

Does it need jQuery or a JavaScript framework?

No. It is built with HTML and CSS only, so there is no JavaScript to load.

Does it work on mobile?

Yes. The layout adapts to small screens. Use the Mobile and Tablet buttons above the live demo to check it at phone and tablet width.

Requirements

No dependencies. Pure HTML, CSS and JavaScript.

Skeleton Product Grid – Pure CSS skeleton loaders component screenshot
Skeleton Product Grid · Pure CSS Skeleton Loaders

More Skeleton Loaders

Skeleton Card Loader – Tailwind CSS skeleton loaders preview

Skeleton Card Loader

Tailwind CSS skeleton loaders for an article card grid and a list, with pulse or shimmer animation that swaps to real content once loaded.

Shimmer Skeleton – Pure CSS skeleton loaders preview

Shimmer Skeleton

Dark pure CSS skeleton screen for a profile card, article and comment list, with one synchronized shimmer sweep across every placeholder.