# Blocks

Nine blocks shrinking and growing in a sweep across a grid.

```svelte
<script>
	import { Blocks } from 'loadsv';
</script>

<Blocks size={48} />
```

## Size

Sets the width and height in pixels. The default is `20`.

```svelte
<script>
	import { Blocks } from 'loadsv';
</script>

<div class="flex items-center gap-6">
	<Blocks size={16} />
	<Blocks size={24} />
	<Blocks size={40} />
</div>
```

## Custom classes

Pass a `class` to adjust a spinner beyond what the props cover. The library’s own styles carry no specificity, so your classes always win.

```svelte
<script>
	import { Blocks } from 'loadsv';
</script>

<Blocks class="opacity-40" size={32} />
```

## Color

Spinners paint with `currentColor`, so they follow the text color around them. Pass any CSS color to tint one directly.

```svelte
<script>
	import { Blocks } from 'loadsv';
</script>

<Blocks color="#ff3e00" size={32} />
```

## Duration

Sets the length of one loop in milliseconds. Higher is slower. The default for this spinner is `1200`. Set `--lsv-duration` on any ancestor to change every spinner inside it.

```svelte
<script>
	import { Blocks } from 'loadsv';
</script>

<Blocks duration={2400} size={32} />
```

## State

Pauses or resumes the animation with `paused` or `running`. Setting `--lsv-play-state` on an ancestor does the same for a whole subtree.

```svelte
<script>
	import { Blocks } from 'loadsv';
</script>

<Blocks playState="paused" size={32} />
```

## Accessibility

Spinners are decorative and hidden from assistive technology, so announce loading on the element that is busy, for example with `aria-busy` and visually hidden text. When reduced motion is on, spinners hold still and gently pulse instead.
