{# @description Draws a stroke of one of the theme's colours under the words it wraps, from left to right, once, as the page loads. #}
{# @prop variant:select['primary', 'secondary', 'accent', 'neutral', 'base-100', 'base-200', 'base-300'] | default:"primary" | description:"The colour of the stroke" #}
{# @prop size:number | default:"0.25" | description:"How thick the stroke is, as a share of the height of the letters. Keep it under 0.4, or it runs behind the words." #}
{# @prop speed:number | default:"1" | description:"How quickly it is drawn, as a multiple: 2 is twice as fast, 0.5 half, and 0 leaves it drawn from the start" #}
{# @prop delay:number | default:"0.3" | description:"How many seconds pass before it starts" #}
{# @prop class:text | description:"Extra classes on the span" #}
{# @slot not the CSS — The words to underline #}
{% comment %}
A background, not a box, so a phrase that wraps is underlined on every line.
The keyframes have a start and no end: at rest the stroke is simply there
(docs/adr/0005-text-effects-are-spans-moved-by-css.md).
{% endcomment %}
{% with pace=speed|floatformat:'-3u'|default:'1' %}
{{ slot }}
{% endwith %}