Go to homepage

Projects /

Skeleton Screen

Content placeholder used to indicate that content is loading.

View Demo

How to

The Skeleton Screen component is a low-fidelity UI used to indicate the content is loading, intending to reduce the end-user's perceived waiting time.

Primitives #

Use this component to design the skeleton screen, using one of the following primitives:


<div class="ske ske--circle"></div>


<!-- rectangle ratio = 16/9 -->
<div class="ske ske--rect-16:9"></div>

<!-- rectangle ratio = 4/3 -->
<div class="ske ske--rect-4:3"></div>

<!-- rectangle ratio = 1/1 -->
<div class="ske ske--square"></div>

<!-- rectangle w/ fixed height (use CodyFrame's height util classes) -->
<div class="ske ske--rect height-xxl"></div>


<!-- text -->
<div class="ske ske--text"></div>

<!-- increase text placeholder height (use CodyFrame's text util classes) -->
<div class="ske ske--text text-lg"></div>

How to create the layouts #

Use CodyFrame's grid and flexbox utility classes to create responsive layouts.

For example:

<ul class="grid gap-xs items-center">
  <li class="col-2">
    <div class="ske ske--circle"></div>

  <li class="col-10">
    <ul class="grid gap-xxs">
      <li class="col-8">
        <div class="ske ske--text"></div>

        <div class="ske ske--text text-sm"></div>

Hide/display content #

The main idea is to show the skeleton right away, while your "real data" is being loaded. When the loading is finished, you should hide the placeholder and show the real content. How you hide/display content depends on the project setup. An option would be using CodyFrame's visibility classes (.is-visible/.is-hidden).


Bug report & feedback

Component Github page ↗

Project duplicated

Project created

Globals imported

There was an error while trying to export your project. Please try again or contact us.