---
id: fast-animation.animate.oncancel
title: Animate.onCancel property
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-animation](./fast-animation.md) &gt; [Animate](./fast-animation.animate.md) &gt; [onCancel](./fast-animation.animate.oncancel.md)

## Animate.onCancel property

Callback to call when the animation is canceled

<b>Signature:</b>

```typescript
onCancel: () => void;
```