DEV Community

Mina Paulis
Mina Paulis

Posted on

Skeleton loader generator

What's a Skeleton loader?

It's an animated placeholder for a piece of content that's still loading

Skeleton Loaders made easier.

You'll find the generator hosted here https://skeleton-loader.web.app

Once opened you'll see
Image description

The left column

You'll see the canvas area where you can control your skeleton and do the following

  • Modify the skeleton "width/height, background, foreground".
  • Enable/Disable the animation.
  • Control the animation duration.
  • Add/Edit shapes of the skeleton "width/height, position and color"

The right column

You'll see the preview of your skeleton and below it the important part which is the generated CSS code

What makes this generator significant?

Simply it generates the skeleton in a single <div> which makes it so easy to add it into any webapp.

The idea

Is that it uses the CSS multiple backgrounds feature to generate it in a single element.
You can check browser compatibility for the generated CSS code from here
https://caniuse.com/?search=multiple%20background

Finally

If you're curious to see the code or open a discussion about it or report an issue, the code is hosted on this Github repo.

Sentry blog image

How I fixed 20 seconds of lag for every user in just 20 minutes.

Our AI agent was running 10-20 seconds slower than it should, impacting both our own developers and our early adopters. See how I used Sentry Profiling to fix it in record time.

Read more

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay