# Google Cloud Video Transcoder V1 Client - Class AnimationFade (1.4.0)

1.4.0 (latest) 1.3.2 1.2.0 1.1.0 1.0.3 0.10.5 0.9.1 0.8.2 0.7.1 0.6.0 0.5.3 Reference documentation and code samples for the Google Cloud Video Transcoder V1 Client class AnimationFade.

Display overlay object with fade animation.

Generated from protobuf message `google.cloud.video.transcoder.v1.Overlay.AnimationFade`

## Namespace

Google \\ Cloud \\ Video \\ Transcoder \\ V1 \\ Overlay

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ fade_type` | `int` Required. Type of fade animation: `FADE_IN` or `FADE_OUT`. |
| `↳ xy` | `https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.Overlay.NormalizedCoordinate` Normalized coordinates based on output video resolution. Valid values: `0.0`--`1.0`. `xy` is the upper-left coordinate of the overlay object. For example, use the x and y coordinates {0,0} to position the top-left corner of the overlay animation in the top-left corner of the output video. |
| `↳ start_time_offset` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` The time to start the fade animation, in seconds. Default: 0 |
| `↳ end_time_offset` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` The time to end the fade animation, in seconds. Default: `start_time_offset` + 1s |

### getFadeType

Required. Type of fade animation: `FADE_IN` or `FADE_OUT`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [FadeType](https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.Overlay.FadeType). |

### setFadeType

Required. Type of fade animation: `FADE_IN` or `FADE_OUT`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [FadeType](https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.Overlay.FadeType). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getXy

Normalized coordinates based on output video resolution. Valid
values: `0.0`--`1.0`. `xy` is the upper-left coordinate of the overlay
object. For example, use the x and y coordinates {0,0} to position the
top-left corner of the overlay animation in the top-left corner of the
output video.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.Overlay.NormalizedCoordinate|null` |   |

### hasXy

### clearXy

### setXy

Normalized coordinates based on output video resolution. Valid
values: `0.0`--`1.0`. `xy` is the upper-left coordinate of the overlay
object. For example, use the x and y coordinates {0,0} to position the
top-left corner of the overlay animation in the top-left corner of the
output video.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.Overlay.NormalizedCoordinate` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getStartTimeOffset

The time to start the fade animation, in seconds. Default: 0

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration|null` |   |

### hasStartTimeOffset

### clearStartTimeOffset

### setStartTimeOffset

The time to start the fade animation, in seconds. Default: 0

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getEndTimeOffset

The time to end the fade animation, in seconds. Default:
`start_time_offset` + 1s

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration|null` |   |

### hasEndTimeOffset

### clearEndTimeOffset

### setEndTimeOffset

The time to end the fade animation, in seconds. Default:
`start_time_offset` + 1s

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |