{# @description Sweeps a band of one of the theme's colours across the words it wraps, like light catching them. The words keep their own colour. #} {# @prop variant:select['primary', 'secondary', 'accent', 'neutral', 'base-100', 'base-200', 'base-300'] | default:"primary" | description:"The colour of the band" #} {# @prop speed:number | default:"1" | description:"How fast the band travels across the words, as a multiple: 2 is twice as fast, 0.5 half. It never takes longer to cross than the wait between crossings." #} {# @prop frequency:number | default:"1" | description:"How often the band crosses, as a multiple: 1 is once every three and a half seconds, 2 twice as often, and 0 never" #} {# @prop repeat:number | description:"How many times the band crosses before it stops. Left out, it never stops." #} {# @prop class:text | description:"Extra classes on the span" #} {# @slot not the CSS — The words the band crosses #} {% comment %} One pass is one wait at one pace, so how fast the band crosses is set by how wide the background is. The band is in ems so it keeps its width whatever that comes to (docs/adr/0005-text-effects-are-spans-moved-by-css.md). {% endcomment %} {% with often=frequency|floatformat:'-3u'|default:'1' %} {{ slot }} {% endwith %}