---
title: Document Methods
slug: document-methods
description: Learn how to enhance your Hype Animation with this comprehensive JavaScript extension guide. Discover how to retrieve the latest version of the extension, efficiently halt all active animation frames on your webpage, stop specific frames by their unique I
createdAt: 2020-04-15T15:42:05.000Z
---

### HypeAnimationFrame.version

```javascript
// property with the current version of the extension
HypeAnimationFrame.version;
```

**Description**

The value of the version property is a string containing the current version of the extension



### HypeAnimationFrame.stopAllAnimationFrames

```javascript
// stop all running animation frames across the page
HypeAnimationFrame.stopAllAnimationFrames();
```

**Description**

This method stops all running Hype Animation Frames across all Hype documents on the page.



### &#x20;HypeAnimationFrame.stopAnimationFrameByHypeDocumentId

```javascript
// stop running animation frame by id 'myTicker' in the Hype document named 'index'
HypeAnimationFrame.stopAnimationFrameByHypeDocumentId('index', 'myTicker');

// stop running animation frame by function reference myCallback in the Hype document named 'index'
HypeAnimationFrame.stopAnimationFrameByHypeDocumentId('index', myCallback);
```

**Parameter**

*documentId*

This parameter must be a string determining the document id of your Hype document

*animationFrameId*

The id to of the animation frame you want to stop. This id was set while creating the animation frame and if none was given defaults to the callback function as a reference.

**Description**

This method stops a specific Hype Animation Frame for a specific Hype document on the page.



### &#x20;HypeAnimationFrame.stopAllAnimationFramesByHypeDocumentId

```javascript
// stop all running animation frames in the Hype document named 'index'
HypeAnimationFrame.stopAnimationFrameByHypeDocumentId('index');
```

**Parameter**

*documentId*

This parameter must be a string determining the document id of your Hype document

**Description**

This method stops all running Hype Animation Frames for a specific Hype document on the page.

**Example**

