Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <div id="progress"></div>
<main>
  <h1>Quercus coccifera</h1>

  <div class="warning">
    <p>⚠️ Your browser does not support Scroll-driven Animations. Please use Chrome 115 or newer.</p>
  </div>

  <em>From <a href="https://en.wikipedia.org/wiki/Quercus_coccifera">Wikipedia</a>, the free encyclopedia</em>

  <p><i><b>Quercus coccifera</b></i>, the <b>kermes oak</b>, is an oak bush in the Ilex section of the genus. It has many synonyms, including Quercus calliprinos. It is native to the Mediterranean region and Northern African Maghreb, south to north from Morocco to France and west to east from Portugal to Cyprus and Turkey, crossing Spain, Italy, Libya, Balkans, and Greece, including Crete. The Kermes Oak was historically important as the food plant of the Kermes scale insect, from which a red dye called crimson was obtained. The etymology of the specific name coccifera is related to the production of red cochineal (crimson) dye and derived from Latin coccum which was from Greek κόκκος, the kermes insect. The Latin -fera means 'bearer'.
  </p>

  <figure>
    <img width="100%" alt="Quercus coccifera (10)" src="https://upload.wikimedia.org/wikipedia/commons/thumb/f/f1/Quercus_coccifera_%2810%29.JPG/512px-Quercus_coccifera_%2810%29.JPG">
    <figcaption><a href="https://commons.wikimedia.org/wiki/File:Quercus_coccifera_(10).JPG">Marija Gajić</a>, <a href="https://creativecommons.org/licenses/by-sa/4.0">CC BY-SA 4.0</a>, via Wikimedia Commons</figcaption>
  </figure>

  <h2>Description</h2>
  <p>Quercus coccifera is usually a shrub less than 2 metres (6+1⁄2 feet) high, rarely a small tree, reaching 1–6 metres (3+1⁄2–19+1⁄2 ft) tall (a 10 m or 33 ft specimen recorded in Kouf, Libya)[5] and 50 centimetres (20 inches) in trunk diameter. It is evergreen, with spiny-serrated coriaceous leaves 1.5–4 cm long and 1–3 cm broad. The acorns are 2–3 cm long and 1.5–2 cm in diameter when mature about 18 months after pollination. They are held in a cup covered in dense, elongated, reflexed scales.</p>
  <p>It blooms from March to May in weather still wet. It is easily propagated by seed, an acorn that lies dormant until germinated by wet weather. This might occur anywhere from late summer to late autumn or early winter (October, November or December) of the following year. The acorns are very bitter, varying greatly in size and shape from one specimen to another and tasting bad. Acorns can germinate even before falling from the plant, but Q. coccifera is also multiplied by root suckers and layering.</p>
  <figure>
    <img width="1024" alt="Quercus coccifera 1" src="https://upload.wikimedia.org/wikipedia/commons/thumb/1/1d/Quercus_coccifera_1.JPG/1024px-Quercus_coccifera_1.JPG">
    <figcaption><a href="https://commons.wikimedia.org/wiki/File:Quercus_coccifera_1.JPG">User:Xemenendura</a>, <a href="http://creativecommons.org/licenses/by-sa/3.0/">CC BY-SA 3.0</a>, via Wikimedia Commons</figcaption>
  </figure>
  <h2>Taxonomy</h2>
  <p>Quercus coccifera was first described by Carl Linnaeus in 1753. It is called "chêne des garrigues" (garrigue oak) in French. The term "garrigue" comes from Catalan or Occitan "garric" (meaning "twisted") the name for Q. coccifera in those languages. The common Spanish name of Q. coccifera is chaparro, which refers to its small size, a feature it shares with other oak species in similar habitats in other parts of the world, such as the chaparral communities from various parts of the Americas. The word chaparro comes from the Basque txapar meaning "little thicket". Quercus coccifera is placed in section Ilex</p>
  <p>Quercus calliprinos, the Palestinian oak, of the eastern Mediterranean, has been distinguished from the kermes oak by its larger size (more often a tree, up to 18 m) and larger acorns over 2 cm diameter.[citation needed] In Israel it is called the common oak (Hebrew: אלון מצוי, IPA: [a'lon ma'tsuj]) or the Palestine oak.[citation needed] As of February 2023, Plants of the World Online regards it as a synonym of Quercus coccifera.</p>
  <em>Source: <a href="https://en.wikipedia.org/wiki/Quercus_coccifera">Wikipedia</a>
</main>
              
            
!

CSS

              
                html {
  scroll-timeline: --page-scroll block;
  font-family: system-ui, sans-serif;
}

#progress {
  position: fixed;
  inset-inline-start: 0;
  inset-block-start: 0;
  inline-size: 100%;
  block-size: 1.5rem;
  background-color: rebeccapurple;

  transform-origin: 0 50%;
  animation: progress auto linear;
  animation-timeline: --page-scroll;
}

/* Make the bar visible for people using forced colors */
@media (forced-colors: active) {
  #progress {
    background-color: LinkText;
  }
}

@keyframes progress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes percent {
  0% {
    content: "0%";
  }
  1% {
    content: "1%";
  }
  2% {
    content: "2%";
  }
  3% {
    content: "3%";
  }
  4% {
    content: "4%";
  }
  5% {
    content: "5%";
  }
  6% {
    content: "6%";
  }
  7% {
    content: "7%";
  }
  8% {
    content: "8%";
  }
  9% {
    content: "9%";
  }
  10% {
    content: "10%";
  }
  11% {
    content: "11%";
  }
  12% {
    content: "12%";
  }
  13% {
    content: "13%";
  }
  14% {
    content: "14%";
  }
  15% {
    content: "15%";
  }
  16% {
    content: "16%";
  }
  17% {
    content: "17%";
  }
  18% {
    content: "18%";
  }
  19% {
    content: "19%";
  }
  20% {
    content: "20%";
  }
  21% {
    content: "21%";
  }
  22% {
    content: "22%";
  }
  23% {
    content: "23%";
  }
  24% {
    content: "24%";
  }
  25% {
    content: "25%";
  }
  26% {
    content: "26%";
  }
  27% {
    content: "27%";
  }
  28% {
    content: "28%";
  }
  29% {
    content: "29%";
  }
  30% {
    content: "30%";
  }
  31% {
    content: "31%";
  }
  32% {
    content: "32%";
  }
  33% {
    content: "33%";
  }
  34% {
    content: "34%";
  }
  35% {
    content: "35%";
  }
  36% {
    content: "36%";
  }
  37% {
    content: "37%";
  }
  38% {
    content: "38%";
  }
  39% {
    content: "39%";
  }
  40% {
    content: "40%";
  }
  41% {
    content: "41%";
  }
  42% {
    content: "42%";
  }
  43% {
    content: "43%";
  }
  44% {
    content: "44%";
  }
  45% {
    content: "45%";
  }
  46% {
    content: "46%";
  }
  47% {
    content: "47%";
  }
  48% {
    content: "48%";
  }
  49% {
    content: "49%";
  }
  50% {
    content: "50%";
  }
  51% {
    content: "51%";
  }
  52% {
    content: "52%";
  }
  53% {
    content: "53%";
  }
  54% {
    content: "54%";
  }
  55% {
    content: "55%";
  }
  56% {
    content: "56%";
  }
  57% {
    content: "57%";
  }
  58% {
    content: "58%";
  }
  59% {
    content: "59%";
  }
  60% {
    content: "60%";
  }
  61% {
    content: "61%";
  }
  62% {
    content: "62%";
  }
  63% {
    content: "63%";
  }
  64% {
    content: "64%";
  }
  65% {
    content: "65%";
  }
  66% {
    content: "66%";
  }
  67% {
    content: "67%";
  }
  68% {
    content: "68%";
  }
  69% {
    content: "69%";
  }
  70% {
    content: "70%";
  }
  71% {
    content: "71%";
  }
  72% {
    content: "72%";
  }
  73% {
    content: "73%";
  }
  74% {
    content: "74%";
  }
  75% {
    content: "75%";
  }
  76% {
    content: "76%";
  }
  77% {
    content: "77%";
  }
  78% {
    content: "78%";
  }
  79% {
    content: "79%";
  }
  80% {
    content: "80%";
  }
  81% {
    content: "81%";
  }
  82% {
    content: "82%";
  }
  83% {
    content: "83%";
  }
  84% {
    content: "84%";
  }
  85% {
    content: "85%";
  }
  86% {
    content: "86%";
  }
  87% {
    content: "87%";
  }
  88% {
    content: "88%";
  }
  89% {
    content: "89%";
  }
  90% {
    content: "90%";
  }
  91% {
    content: "91%";
  }
  92% {
    content: "92%";
  }
  93% {
    content: "93%";
  }
  94% {
    content: "94%";
  }
  95% {
    content: "95%";
  }
  96% {
    content: "96%";
  }
  97% {
    content: "97%";
  }
  98% {
    content: "98%";
  }
  99% {
    content: "99%";
  }
  100% {
    content: "100%";
  }
}

/* General Styling */

@supports (animation-timeline: view()) {
  .warning {
    display: none;
  }
}

main {
  max-inline-size: 60ch;
  font-size: 130%;
  margin-inline: auto;
}

figure {
  margin-inline: 0;
}

img {
  max-inline-size: 100%;
  block-size: auto;
  border-radius: 1rem;
}

              
            
!

JS

              
                
              
            
!
999px

Console