# animate

Source: https://zotonic.com/docs/1423/animate

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

Language: en



Add a `$(..).animate` jQuery call to the target element.

Arguments:

- `target` selects the element to animate.
- `options` is a list or map of CSS properties and target values passed to jQuery's `animate` function.
- `speed` is the duration in milliseconds, or a jQuery duration such as `"slow"`. The default is 350 milliseconds.
- `easing` is the name of the jQuery easing function.

For example, this fades an element to half opacity:

```django
{% button text="Dim" action={animate target="panel" options=[{opacity, 0.5}] speed=250} %}
```

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/1423?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/1423?language=en>)
