Dev Helpers
← Back

Disclosure arrow rotation

Disclosure arrow rotation with native CSS. The preview includes a small shared demo stylesheet.

Open this example in the interactive library

Source code

<style>
  .demo[open] summary span {
    display: inline-block;
    transform: rotate(90deg);
  }
</style>
<details class="demo">
  <summary>Specifications <span aria-hidden="true">›</span></summary>
  Ivory paper, 120 gsm.
</details>