# spinner

Source: https://zotonic.com/docs/1400/spinner

URI: https://zotonic.com/id/1400

Language: en



Add an AJAX activity indicator.

Whenever an AJAX call is made the HTML element with the id `#spinner` will be shown during the call.

You can add a spinner element to your page yourself or use this tag to place it somewhere on your page.

Example:

```erlang
{% spinner %}
```

Outputs the HTML code:

```erlang
<div id="spinner" class="spinner" style="display: none">
  <img alt="activity indicator" src="/lib/images/spinner.gif" />
</div>
```

The spinner tag accepts a single argument “image”. The “image” argument must contain the URL for the image displayed. It defaults to “`/lib/images/spinner.gif`”.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/1400?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/1400?language=en>)
