<main>
  
  <section>
    <!-- With HTML attributes -->
    <img data-twic-src="placeholder:auto" width="300" height="300">
  </section>

  <section>
    <!-- Same result with CSS -->
    <img data-twic-src="placeholder:auto" style="width:300px; height:300px;">
  </section>

  <section>
    <!-- Placeholder as a "cover" background image -->
    <div class="bg" data-twic-background="url(placeholder:auto)"></div>
  </section>

</main>
main {
  max-width: 1000px;
  margin: auto;
  padding: 1em;
}

section {
  display: flex;
  justify-content: center;
  margin-bottom: 1em;
}

img {
  display: block;
}

figure {
  margin: 0;
}

.bg {
  width: 300px;
  height: 300px;
  background-size: cover;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://i.twic.pics/v1/script